Beispiel #1
0
		/// <summary> This method is responsible for allowing
		/// all non-grammar text to pass through
		/// unscathed.
		/// </summary>
		public void Text()
		{
			/*@bgen(jjtree) Text */
			ASTText jjtn000 = new ASTText(this, ParserTreeConstants.TEXT);
			nodeTree.OpenNodeScope(jjtn000);
			try
			{
				switch(GetCurrentTokenKind())
				{
					case ParserConstants.TEXT:
						ConsumeToken(ParserConstants.TEXT);
						break;

					case ParserConstants.DOT:
						ConsumeToken(ParserConstants.DOT);
						break;

					case ParserConstants.RPAREN:
						ConsumeToken(ParserConstants.RPAREN);
						break;

					case ParserConstants.LPAREN:
						ConsumeToken(ParserConstants.LPAREN);
						break;

					case ParserConstants.NUMBER_LITERAL:
						ConsumeToken(ParserConstants.NUMBER_LITERAL);
						break;

					case ParserConstants.STRING_LITERAL:
						ConsumeToken(ParserConstants.STRING_LITERAL);
						break;

					case ParserConstants.ESCAPE:
						ConsumeToken(ParserConstants.ESCAPE);
						break;

					case ParserConstants.LCURLY:
						ConsumeToken(ParserConstants.LCURLY);
						break;

					case ParserConstants.RCURLY:
						ConsumeToken(ParserConstants.RCURLY);
						break;

					default:
						jj_la1[26] = jj_gen;
						ConsumeToken(-1);
						throw new ParseException();
				}
			}
			finally
			{
				nodeTree.CloseNodeScope(jjtn000, true);
			}
		}
Beispiel #2
0
 public virtual Object Visit(ASTText node, Object data)
 {
     data = node.ChildrenAccept(this, data);
     return(data);
 }
Beispiel #3
0
 /// <summary>Display an ASTText node
 /// </summary>
 public override Object Visit(ASTText node, Object data)
 {
     return(ShowNode(node, data));
 }
Beispiel #4
0
 /// <summary>Display an ASTText node
 /// </summary>
 public override System.Object visit(ASTText node, System.Object data)
 {
     return(showNode(node, data));
 }
Beispiel #5
0
 public virtual System.Object visit(ASTText node, System.Object data)
 {
     data = node.childrenAccept(this, data);
     return(data);
 }
Beispiel #6
0
 public override object Visit(ASTText node, object data)
 {
     return(this.ShowNode(node, data));
 }