Exemplo n.º 1
0
    // $ANTLR end "statement"


    // $ANTLR start "atStatement"
    // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:142:1: atStatement returns [SGLNode node] : ^( AT expression block ) ;
    public SGLNode atStatement() // throws RecognitionException [1]
    {   
        SGLNode node = default(SGLNode);

        SGLNode expression14 = default(SGLNode);

        SGLNode block15 = default(SGLNode);


        try 
    	{
            // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:143:2: ( ^( AT expression block ) )
            // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:143:4: ^( AT expression block )
            {
            	Match(input,AT,FOLLOW_AT_in_atStatement252); 

            	Match(input, Token.DOWN, null); 
            	PushFollow(FOLLOW_expression_in_atStatement254);
            	expression14 = expression();
            	state.followingStackPointer--;

            	PushFollow(FOLLOW_block_in_atStatement256);
            	block15 = block();
            	state.followingStackPointer--;


            	Match(input, Token.UP, null); 
            	 node = new AtNode(expression14, block15); 

            }

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return node;
    }
Exemplo n.º 2
0
    // $ANTLR end "statement"


    // $ANTLR start "atStatement"
    // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:168:1: atStatement returns [SGLNode node] : ^( AT expression block ) ;
    public SGLNode atStatement() // throws RecognitionException [1]
    {   
        SGLNode node = default(SGLNode);

        SGLNode expression13 = default(SGLNode);

        SGLNode block14 = default(SGLNode);


        try 
    	{
            // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:169:2: ( ^( AT expression block ) )
            // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:169:4: ^( AT expression block )
            {
            	Match(input,AT,FOLLOW_AT_in_atStatement255); 

            	Match(input, Token.DOWN, null); 
            	PushFollow(FOLLOW_expression_in_atStatement257);
            	expression13 = expression();
            	state.followingStackPointer--;

            	PushFollow(FOLLOW_block_in_atStatement259);
            	block14 = block();
            	state.followingStackPointer--;


            	Match(input, Token.UP, null); 
            	 node = new AtNode(expression13, block14); 

            }

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return node;
    }