Ejemplo n.º 1
0
    // $ANTLR start "selectObject"
    // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Hql.g:227:1: selectObject : OBJECT OPEN identifier CLOSE ;
    public HqlParser.selectObject_return selectObject() // throws RecognitionException [1]
    {   
        HqlParser.selectObject_return retval = new HqlParser.selectObject_return();
        retval.Start = input.LT(1);

        IASTNode root_0 = null;

        IToken OBJECT50 = null;
        IToken OPEN51 = null;
        IToken CLOSE53 = null;
        HqlParser.identifier_return identifier52 = default(HqlParser.identifier_return);


        IASTNode OBJECT50_tree=null;
        IASTNode OPEN51_tree=null;
        IASTNode CLOSE53_tree=null;

        try 
    	{
            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Hql.g:228:4: ( OBJECT OPEN identifier CLOSE )
            // /Users/Steve/Projects/NHibernate/Branches/2.1.x/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Hql.g:228:6: OBJECT OPEN identifier CLOSE
            {
            	root_0 = (IASTNode)adaptor.GetNilNode();

            	OBJECT50=(IToken)Match(input,OBJECT,FOLLOW_OBJECT_in_selectObject1067); 
            		OBJECT50_tree = (IASTNode)adaptor.Create(OBJECT50);
            		root_0 = (IASTNode)adaptor.BecomeRoot(OBJECT50_tree, root_0);

            	OPEN51=(IToken)Match(input,OPEN,FOLLOW_OPEN_in_selectObject1070); 
            	PushFollow(FOLLOW_identifier_in_selectObject1073);
            	identifier52 = identifier();
            	state.followingStackPointer--;

            	adaptor.AddChild(root_0, identifier52.Tree);
            	CLOSE53=(IToken)Match(input,CLOSE,FOLLOW_CLOSE_in_selectObject1075); 

            }

            retval.Stop = input.LT(-1);

            	retval.Tree = (IASTNode)adaptor.RulePostProcessing(root_0);
            	adaptor.SetTokenBoundaries(retval.Tree, (IToken) retval.Start, (IToken) retval.Stop);
        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
    	// Conversion of the second argument necessary, but harmless
    	retval.Tree = (IASTNode)adaptor.ErrorNode(input, (IToken) retval.Start, input.LT(-1), re);

        }
        finally 
    	{
        }
        return retval;
    }
    // $ANTLR start "selectObject"
    // Hql.g:233:1: selectObject : OBJECT OPEN identifier CLOSE ;
    public HqlParser.selectObject_return selectObject() // throws RecognitionException [1]
    {   
        HqlParser.selectObject_return retval = new HqlParser.selectObject_return();
        retval.Start = input.LT(1);

        IASTNode root_0 = null;

        IToken OBJECT54 = null;
        IToken OPEN55 = null;
        IToken CLOSE57 = null;
        HqlParser.identifier_return identifier56 = default(HqlParser.identifier_return);


        IASTNode OBJECT54_tree=null;
        IASTNode OPEN55_tree=null;
        IASTNode CLOSE57_tree=null;

        try 
    	{
            // Hql.g:234:4: ( OBJECT OPEN identifier CLOSE )
            // Hql.g:234:6: OBJECT OPEN identifier CLOSE
            {
            	root_0 = (IASTNode)adaptor.GetNilNode();

            	OBJECT54=(IToken)Match(input,OBJECT,FOLLOW_OBJECT_in_selectObject1107); 
            		OBJECT54_tree = (IASTNode)adaptor.Create(OBJECT54);
            		root_0 = (IASTNode)adaptor.BecomeRoot(OBJECT54_tree, root_0);

            	OPEN55=(IToken)Match(input,OPEN,FOLLOW_OPEN_in_selectObject1110); 
            	PushFollow(FOLLOW_identifier_in_selectObject1113);
            	identifier56 = identifier();
            	state.followingStackPointer--;

            	adaptor.AddChild(root_0, identifier56.Tree);
            	CLOSE57=(IToken)Match(input,CLOSE,FOLLOW_CLOSE_in_selectObject1115); 

            }

            retval.Stop = input.LT(-1);

            	retval.Tree = (IASTNode)adaptor.RulePostProcessing(root_0);
            	adaptor.SetTokenBoundaries(retval.Tree, (IToken) retval.Start, (IToken) retval.Stop);
        }
        catch (RecognitionException re) 
    	{
            ReportError(re);
            Recover(input,re);
    	// Conversion of the second argument necessary, but harmless
    	retval.Tree = (IASTNode)adaptor.ErrorNode(input, (IToken) retval.Start, input.LT(-1), re);

        }
        finally 
    	{
        }
        return retval;
    }