ES3Parser.bitwiseXORExpression C# (CSharp) Method

bitwiseXORExpression() public method

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

        object root_0 = null;

        IToken XOR67 = null;
        ES3Parser.bitwiseANDExpression_return left = default(ES3Parser.bitwiseANDExpression_return);

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


        object XOR67_tree=null;

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

            	PushFollow(FOLLOW_bitwiseANDExpression_in_bitwiseXORExpression4549);
            	left = bitwiseANDExpression();
            	state.followingStackPointer--;

            	adaptor.AddChild(root_0, left.Tree);
            	 retval.value =  left.value; 
            	// C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1237:55: ( XOR right= bitwiseANDExpression )*
            	do 
            	{
            	    int alt42 = 2;
            	    int LA42_0 = input.LA(1);

            	    if ( (LA42_0 == XOR) )
            	    {
            	        alt42 = 1;
            	    }


            	    switch (alt42) 
            		{
            			case 1 :
            			    // C:\\Users\\s.ros\\Projets\\Jint\\Jint\\ES3.g:1237:57: XOR right= bitwiseANDExpression
            			    {
            			    	XOR67=(IToken)Match(input,XOR,FOLLOW_XOR_in_bitwiseXORExpression4555); 
            			    		XOR67_tree = (object)adaptor.Create(XOR67);
            			    		root_0 = (object)adaptor.BecomeRoot(XOR67_tree, root_0);

            			    	PushFollow(FOLLOW_bitwiseANDExpression_in_bitwiseXORExpression4560);
            			    	right = bitwiseANDExpression();
            			    	state.followingStackPointer--;

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

            			    }
            			    break;

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

            	loop42:
            		;	// Stops C# compiler whining that label 'loop42' 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 "bitwiseXORExpression"
ES3Parser