Package com.icona.tree.nodes.Expression

Examples of com.icona.tree.nodes.Expression.BinaryExpression



    // $ANTLR start "additive_expression"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1117:1: additive_expression returns [BinaryExpression expression] : exp1= multiplicative_expression ( ( '+' | '-' ) expx= multiplicative_expression )* ;
    public final BinaryExpression additive_expression() throws RecognitionException {
        BinaryExpression expression = null;


        BinaryExpression exp1 =null;

        BinaryExpression expx =null;



          Expression prev=null; //Will tell the prvious expression added;
          BinaryExpression addTo=null; //Will tell where to add
          BinarySymbol op=null;
          expression =new BinaryExpression(null,-1,null);
          addTo=expression;

        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1126:2: (exp1= multiplicative_expression ( ( '+' | '-' ) expx= multiplicative_expression )* )
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1127:2: exp1= multiplicative_expression ( ( '+' | '-' ) expx= multiplicative_expression )*
 
View Full Code Here



    // $ANTLR start "multiplicative_expression"
    // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1149:1: multiplicative_expression returns [BinaryExpression expression] : exp1= cast_expression ( ( '*' | '/' | '%' ) expx= cast_expression )* ;
    public final BinaryExpression multiplicative_expression() throws RecognitionException {
        BinaryExpression expression = null;


        Expression exp1 =null;

        Expression expx =null;



          Expression prev=null; //Will tell the prvious expression added;
          BinaryExpression addTo=null; //Will tell where to add
          BinarySymbol op=null;
          expression =new BinaryExpression(null,-1,null);
          addTo=expression;

        try {
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1158:2: (exp1= cast_expression ( ( '*' | '/' | '%' ) expx= cast_expression )* )
            // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1159:2: exp1= cast_expression ( ( '*' | '/' | '%' ) expx= cast_expression )*
 
View Full Code Here

    }
    // $ANTLR end synpred88_ObjectiveC

    // $ANTLR start synpred123_ObjectiveC
    public final void synpred123_ObjectiveC_fragment() throws RecognitionException {
        BinaryExpression expx =null;


        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1099:3: ( ( '<<' | '>>' ) expx= shift_expression )
        // C:\\Users\\line47\\workspace\\ObjCFYPA\\src\\com\\icona\\antlr\\main\\ObjectiveC.g:1099:3: ( '<<' | '>>' ) expx= shift_expression
        {
View Full Code Here

TOP

Related Classes of com.icona.tree.nodes.Expression.BinaryExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.