Ejemplo n.º 1
0
		public virtual Object Visit(ASTNotNode node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Ejemplo n.º 2
0
		public void UnaryExpression()
		{
			if (jj_2_11(2))
			{
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.WHITESPACE:
						ConsumeToken(ParserConstants.WHITESPACE);
						break;

					default:
						jj_la1[47] = jj_gen;
						;
						break;
				}
				ConsumeToken(ParserConstants.LOGICAL_NOT);
				ASTNotNode jjtn001 = new ASTNotNode(this, ParserTreeConstants.NOT_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
				{
					UnaryExpression();
				}
				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, 1);
					}
				}
			}
			else
			{
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.LBRACKET:
					case ParserConstants.LPAREN:
					case ParserConstants.WHITESPACE:
					case ParserConstants.STRING_LITERAL:
					case ParserConstants.TRUE:
					case ParserConstants.FALSE:
					case ParserConstants.NUMBER_LITERAL:
					case ParserConstants.IDENTIFIER:
					case ParserConstants.LCURLY:
						PrimaryExpression();
						break;

					default:
						jj_la1[48] = jj_gen;
						ConsumeToken(-1);
						throw new ParseException();
				}
			}
		}
Ejemplo n.º 3
0
		/// <summary>Display an ASTNotNode ( ! )
		/// </summary>
		public override Object Visit(ASTNotNode node, Object data)
		{
			return ShowNode(node, data);
		}