コード例 #1
0
ファイル: BaseVisitor.cs プロジェクト: rambo-returns/MonoRail
		public virtual Object Visit(ASTText node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
コード例 #2
0
		/// <summary>Display an ASTText node
		/// </summary>
		public override Object Visit(ASTText node, Object data)
		{
			return ShowNode(node, data);
		}
コード例 #3
0
	public virtual System.Object visit(ASTText node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}
コード例 #4
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.JJTTEXT);
	    bool jjtc000 = true;
	    jjtree.openNodeScope(jjtn000);
	    try {
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		    case ParserConstants.TEXT:
			jj_consume_token(ParserConstants.TEXT);
			break;

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

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

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

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

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

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

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

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

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

		}
	    } finally {
		if (jjtc000) {
		    jjtree.closeNodeScope(jjtn000, true);
		}
	    }
	}
コード例 #5
0
ファイル: NodeViewMode.cs プロジェクト: DF-thangld/web_game
 /// <summary>Display an ASTText node
 /// </summary>
 public override System.Object visit(ASTText node, System.Object data)
 {
     return showNode(node, data);
 }