예제 #1
0
    // $ANTLR end "returnStat"


    // $ANTLR start "methodCall"
    // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:150:1: methodCall returns [SGLNode node] : ^( METH_CALL Identifier arguments ) ;
    public SGLNode methodCall() // throws RecognitionException [1]
    {   
        SGLNode node = default(SGLNode);

        CommonTree Identifier17 = null;
        List<SGLNode> arguments18 = default(List<SGLNode>);


        try 
    	{
            // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:151:2: ( ^( METH_CALL Identifier arguments ) )
            // C:\\Users\\Dominik Halfkann\\Documents\\Visual Studio 2010\\Projects\\SGLParserTester\\SGL\\AntlrParser\\SGLTreeWalker.g:151:4: ^( METH_CALL Identifier arguments )
            {
            	Match(input,METH_CALL,FOLLOW_METH_CALL_in_methodCall300); 

            	Match(input, Token.DOWN, null); 
            	Identifier17=(CommonTree)Match(input,Identifier,FOLLOW_Identifier_in_methodCall302); 
            	PushFollow(FOLLOW_arguments_in_methodCall304);
            	arguments18 = arguments();
            	state.followingStackPointer--;


            	Match(input, Token.UP, null); 
            	 node = new MethodCallNode(((Identifier17 != null) ? Identifier17.Text : null), arguments18, methods, storyboardCode, globalScope, Identifier17.Line); 

            }

        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
        }
        finally 
    	{
        }
        return node;
    }
예제 #2
0
    // $ANTLR end "returnStat"


    // $ANTLR start "methodCall"
    // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:176:1: methodCall returns [SGLNode node] : ^( METH_CALL Identifier ( expressionList )? ) ;
    public SGLNode methodCall() // throws RecognitionException [1]
    {   
        SGLNode node = default(SGLNode);

        CommonTree Identifier16 = null;
        List<SGLNode> expressionList17 = default(List<SGLNode>);


        try 
    	{
            // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:177:2: ( ^( METH_CALL Identifier ( expressionList )? ) )
            // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:177:4: ^( METH_CALL Identifier ( expressionList )? )
            {
            	Match(input,METH_CALL,FOLLOW_METH_CALL_in_methodCall304); 

            	Match(input, Token.DOWN, null); 
            	Identifier16=(CommonTree)Match(input,Identifier,FOLLOW_Identifier_in_methodCall306); 
            	// D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:177:27: ( expressionList )?
            	int alt4 = 2;
            	int LA4_0 = input.LA(1);

            	if ( (LA4_0 == EXP_LIST) )
            	{
            	    alt4 = 1;
            	}
            	switch (alt4) 
            	{
            	    case 1 :
            	        // D:\\sgl4c#\\NewSGLGramma\\SGLTreeWalker.g:177:27: expressionList
            	        {
            	        	PushFollow(FOLLOW_expressionList_in_methodCall308);
            	        	expressionList17 = expressionList();
            	        	state.followingStackPointer--;


            	        }
            	        break;

            	}


            	Match(input, Token.UP, null); 
            	 node = new MethodCallNode(((Identifier16 != null) ? Identifier16.Text : null), expressionList17, methods, objectMethods, storyboardCode, globalScope, random, Identifier16.Line); 

            }

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