Exemplo n.º 1
0
		public void ConditionalAndExpression()
		{
			EqualityExpression();
			while(true)
			{
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.LOGICAL_AND:
						;
						break;

					default:
						jj_la1[38] = 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_14_brk;
				}
				ConsumeToken(ParserConstants.LOGICAL_AND);
				ASTAndNode jjtn001 = new ASTAndNode(this, ParserTreeConstants.AND_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
				{
					EqualityExpression();
				}
				catch(Exception exception)
				{
					nodeTree.ClearNodeScope(jjtn001);
					jjtc001 = false;
					if (exception is SystemException)
					{
						throw;
					}
					if (exception is ParseException)
					{
						throw;
					}
					throw (ApplicationException) exception;
				}
				finally
				{
					if (jjtc001)
					{
						nodeTree.CloseNodeScope(jjtn001, 2);
					}
				}
			}
			//UPGRADE_NOTE: Label 'label_14_brk' was added. 'ms-help://MS.VSCC/commoner/redir/redirect.htm?keyword="jlca1011"'
			label_14_brk:
			;
		}
Exemplo n.º 2
0
 public virtual Object Visit(ASTAndNode node, Object data)
 {
     data = node.ChildrenAccept(this, data);
     return(data);
 }
Exemplo n.º 3
0
 /// <summary>Display an ASTAndNode ( &amp;&amp; )
 /// </summary>
 public override Object Visit(ASTAndNode node, Object data)
 {
     return(ShowNode(node, data));
 }
Exemplo n.º 4
0
 /// <summary>Display an ASTAndNode ( && )
 /// </summary>
 public override System.Object visit(ASTAndNode node, System.Object data)
 {
     return(showNode(node, data));
 }
Exemplo n.º 5
0
 public virtual System.Object visit(ASTAndNode node, System.Object data)
 {
     data = node.childrenAccept(this, data);
     return(data);
 }
Exemplo n.º 6
0
 public override object Visit(ASTAndNode node, object data)
 {
     return(this.ShowNode(node, data));
 }