Пример #1
0
	public void  Comment() {
	    /*@bgen(jjtree) Comment */
	    ASTComment jjtn000 = new ASTComment(this, ParserTreeConstants.JJTCOMMENT);
	    bool jjtc000 = true;
	    jjtree.openNodeScope(jjtn000);
	    try {
		switch ((jj_ntk_Renamed_Field == - 1)?jj_ntk():jj_ntk_Renamed_Field) {
		    case ParserConstants.SINGLE_LINE_COMMENT:
			jj_consume_token(ParserConstants.SINGLE_LINE_COMMENT);
			break;

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

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

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

		}
	    } finally {
		if (jjtc000) {
		    jjtree.closeNodeScope(jjtn000, true);
		}
	    }
	}
Пример #2
0
		public virtual Object Visit(ASTComment node, Object data)
		{
			data = node.ChildrenAccept(this, data);
			return data;
		}
Пример #3
0
	public virtual System.Object visit(ASTComment node, System.Object data) {
	    data = node.childrenAccept(this, data);
	    return data;
	}