ES3Parser.bitwiseORExpression C# (CSharp) Method

bitwiseORExpression() public method

public bitwiseORExpression ( ) : ES3Parser.bitwiseORExpression_return
return ES3Parser.bitwiseORExpression_return
    public ES3Parser.bitwiseORExpression_return bitwiseORExpression() // throws RecognitionException [1]
    {   
        ES3Parser.bitwiseORExpression_return retval = new ES3Parser.bitwiseORExpression_return();
        retval.Start = input.LT(1);

        object root_0 = null;

        IToken OR69 = null;
        ES3Parser.bitwiseXORExpression_return left = default(ES3Parser.bitwiseXORExpression_return);

        ES3Parser.bitwiseXORExpression_return right = default(ES3Parser.bitwiseXORExpression_return);


        object OR69_tree=null;

        try 
    	{
            // C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1245:2: (left= bitwiseXORExpression ( OR right= bitwiseXORExpression )* )
            // C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1245:4: left= bitwiseXORExpression ( OR right= bitwiseXORExpression )*
            {
            	root_0 = (object)adaptor.GetNilNode();

            	PushFollow(FOLLOW_bitwiseXORExpression_in_bitwiseORExpression4616);
            	left = bitwiseXORExpression();
            	state.followingStackPointer--;

            	adaptor.AddChild(root_0, left.Tree);
            	 retval.value =  left.value; 
            	// C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1245:55: ( OR right= bitwiseXORExpression )*
            	do 
            	{
            	    int alt44 = 2;
            	    int LA44_0 = input.LA(1);

            	    if ( (LA44_0 == OR) )
            	    {
            	        alt44 = 1;
            	    }


            	    switch (alt44) 
            		{
            			case 1 :
            			    // C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1245:57: OR right= bitwiseXORExpression
            			    {
            			    	OR69=(IToken)Match(input,OR,FOLLOW_OR_in_bitwiseORExpression4622); 
            			    		OR69_tree = (object)adaptor.Create(OR69);
            			    		root_0 = (object)adaptor.BecomeRoot(OR69_tree, root_0);

            			    	PushFollow(FOLLOW_bitwiseXORExpression_in_bitwiseORExpression4627);
            			    	right = bitwiseXORExpression();
            			    	state.followingStackPointer--;

            			    	adaptor.AddChild(root_0, right.Tree);
            			    	 retval.value =  new BinaryExpression(BinaryExpressionType.BitwiseOr, retval.value, right.value); 

            			    }
            			    break;

            			default:
            			    goto loop44;
            	    }
            	} while (true);

            	loop44:
            		;	// Stops C# compiler whining that label 'loop44' has no statements


            }

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

            	retval.Tree = (object)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 = (object)adaptor.ErrorNode(input, (IToken) retval.Start, input.LT(-1), re);

        }
        finally 
    	{
        }
        return retval;
    }
    // $ANTLR end "bitwiseORExpression"
ES3Parser