Example #1
0
		public virtual Object Visit(ASTExpression node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Example #2
0
		/// <summary>Display an ASTExpression node
		/// </summary>
		public override Object Visit(ASTExpression node, Object data)
		{
			return ShowNode(node, data);
		}
	public virtual System.Object visit(ASTExpression node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
Example #4
0
	/* -----------------------------------------------------------------------
		* 
		*  Expression Syntax
		* 
		* ----------------------------------------------------------------------*/
	public void  Expression() {
	    /*@bgen(jjtree) Expression */
	    ASTExpression jjtn000 = new ASTExpression(this, ParserTreeConstants.JJTEXPRESSION);
	    bool jjtc000 = true;
	    jjtree.openNodeScope(jjtn000);
	    //UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
	    try {
		if (jj_2_10(2147483647)) {
		    Assignment();
		} else {
		    switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
case ParserConstants.LBRACKET: case ParserConstants.LPAREN: case ParserConstants.WHITESPACE: case ParserConstants.STRING_LITERAL: case ParserConstants.TRUE: case ParserConstants.FALSE: case ParserConstants.LOGICAL_NOT: case ParserConstants.NUMBER_LITERAL: case ParserConstants.IDENTIFIER: case ParserConstants.LCURLY:
			    ConditionalOrExpression();
			    break;

			default:
			    jj_la1[36] = jj_gen;
			    jj_consume_token(- 1);
			    throw new ParseException();

		    }
		}
	    } catch (System.Exception jjte000) {
		if (jjtc000) {
		    jjtree.clearNodeScope(jjtn000);
		    jjtc000 = false;
		} else {
		    jjtree.popNode();
		}
		if (jjte000 is System.SystemException) { {
			if (true)
			    throw (System.SystemException) jjte000;
		    }
		}
		if (jjte000 is ParseException) { {
			if (true)
			    throw (ParseException) jjte000;
		    }
		} {
		    if (true)
			throw (System.ApplicationException) jjte000;
		}
	    } finally {
		if (jjtc000) {
		    jjtree.closeNodeScope(jjtn000, true);
		}
	    }
	}
Example #5
0
 /// <summary>Display an ASTExpression node
 /// </summary>
 public override System.Object visit(ASTExpression node, System.Object data)
 {
     return showNode(node, data);
 }