Ejemplo n.º 1
0
		public virtual Object Visit(ASTLTNode node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Ejemplo n.º 2
0
		public void RelationalExpression()
		{
			AdditiveExpression();
			while(true)
			{
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.LOGICAL_LT:
					case ParserConstants.LOGICAL_LE:
					case ParserConstants.LOGICAL_GT:
					case ParserConstants.LOGICAL_GE:
						;
						break;

					default:
						jj_la1[41] = jj_gen;
						//UPGRADE_NOTE: Labeled break statement was changed to a goto statement. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1012"'
						goto label_16_brk;
				}
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.LOGICAL_LT:
						ConsumeToken(ParserConstants.LOGICAL_LT);
						ASTLTNode jjtn001 = new ASTLTNode(this, ParserTreeConstants.LT_NODE);
						bool jjtc001 = true;
						nodeTree.OpenNodeScope(jjtn001);
						//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
						try
						{
							AdditiveExpression();
						}
						catch(System.Exception jjte001)
						{
							nodeTree.ClearNodeScope(jjtn001);
							jjtc001 = false;
							if (jjte001 is SystemException)
							{
								throw;
							}
							if (jjte001 is ParseException)
							{
								throw;
							}
							throw (ApplicationException) jjte001;
						}
						finally
						{
							if (jjtc001)
							{
								nodeTree.CloseNodeScope(jjtn001, 2);
							}
						}
						break;

					case ParserConstants.LOGICAL_GT:
						ConsumeToken(ParserConstants.LOGICAL_GT);
						ASTGTNode jjtn002 = new ASTGTNode(this, ParserTreeConstants.GT_NODE);
						bool jjtc002 = true;
						nodeTree.OpenNodeScope(jjtn002);
						//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
						try
						{
							AdditiveExpression();
						}
						catch(System.Exception jjte002)
						{
							nodeTree.ClearNodeScope(jjtn002);
							jjtc002 = false;
							if (jjte002 is SystemException)
							{
								throw;
							}
							if (jjte002 is ParseException)
							{
								throw;
							}
							throw (ApplicationException) jjte002;
						}
						finally
						{
							if (jjtc002)
							{
								nodeTree.CloseNodeScope(jjtn002, 2);
							}
						}
						break;

					case ParserConstants.LOGICAL_LE:
						ConsumeToken(ParserConstants.LOGICAL_LE);
						ASTLENode jjtn003 = new ASTLENode(this, ParserTreeConstants.LE_NODE);
						bool jjtc003 = true;
						nodeTree.OpenNodeScope(jjtn003);
						//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
						try
						{
							AdditiveExpression();
						}
						catch(System.Exception jjte003)
						{
							nodeTree.ClearNodeScope(jjtn003);
							jjtc003 = false;
							if (jjte003 is SystemException)
							{
								throw;
							}
							if (jjte003 is ParseException)
							{
								throw;
							}
							throw (ApplicationException) jjte003;
						}
						finally
						{
							if (jjtc003)
							{
								nodeTree.CloseNodeScope(jjtn003, 2);
							}
						}
						break;

					case ParserConstants.LOGICAL_GE:
						ConsumeToken(ParserConstants.LOGICAL_GE);
						ASTGENode jjtn004 = new ASTGENode(this, ParserTreeConstants.GE_NODE);
						bool jjtc004 = true;
						nodeTree.OpenNodeScope(jjtn004);
						//UPGRADE_NOTE: Exception 'java.lang.Throwable' was converted to ' ' which has different behavior. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1100"'
						try
						{
							AdditiveExpression();
						}
						catch(System.Exception jjte004)
						{
							nodeTree.ClearNodeScope(jjtn004);
							jjtc004 = false;
							if (jjte004 is SystemException)
							{
								throw;
							}
							if (jjte004 is ParseException)
							{
								throw;
							}
							throw (ApplicationException) jjte004;
						}
						finally
						{
							if (jjtc004)
							{
								nodeTree.CloseNodeScope(jjtn004, 2);
							}
						}
						break;

					default:
						jj_la1[42] = jj_gen;
						ConsumeToken(-1);
						throw new ParseException();
				}
			}
			//UPGRADE_NOTE: Label 'label_16_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
			label_16_brk:
			;
		}
Ejemplo n.º 3
0
		/// <summary>Display an ASTLTNode ( &lt; )
		/// </summary>
		public override Object Visit(ASTLTNode node, Object data)
		{
			return ShowNode(node, data);
		}