traceIn("xpath"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST xpath_AST = null;  try { { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case XQUERY: case VERSION: case LITERAL_declare: case LITERAL_default: case LITERAL_function: case LITERAL_variable: case LITERAL_element: case DOLLAR: case LITERAL_import: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case PLUS: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_order: case LITERAL_by: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case MINUS: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 123: case 124: case LITERAL_parent: case LITERAL_ancestor: case 127: case 128: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_comment: case 133: case 134: case XML_PI: case LITERAL_document: case LITERAL_collection: { module(); astFactory.addASTChild(currentAST, returnAST); break; } case EOF: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } org.exist.xquery.parser.XQueryAST tmp115_AST = null; tmp115_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp115_AST); match(Token.EOF_TYPE); xpath_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST xpath_AST = null;  try { { switch ( LA(1)) { case LPAREN: case NCNAME: case LITERAL_module: case LITERAL_namespace: case STRING_LITERAL: case XQUERY: case VERSION: case LITERAL_declare: case LITERAL_default: case LITERAL_function: case LITERAL_variable: case LITERAL_element: case DOLLAR: case LITERAL_import: case LITERAL_at: case LITERAL_as: case LITERAL_empty: case STAR: case PLUS: case LITERAL_item: case LITERAL_for: case LITERAL_let: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_order: case LITERAL_by: case LITERAL_then: case LITERAL_else: case LITERAL_or: case LITERAL_and: case LITERAL_cast: case LT: case LITERAL_is: case LITERAL_isnot: case MINUS: case LITERAL_div: case LITERAL_mod: case LITERAL_union: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 123: case 124: case LITERAL_parent: case LITERAL_ancestor: case 127: case 128: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_comment: case 133: case 134: case XML_PI: case LITERAL_document: case LITERAL_collection: { module(); astFactory.addASTChild(currentAST, returnAST); break;
	public final void xpath() throws RecognitionException, TokenStreamException {				traceIn("xpath");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST xpath_AST = null;						try {      // for error handling				{				switch ( LA(1)) {				case LPAREN:				case NCNAME:				case LITERAL_module:				case LITERAL_namespace:				case STRING_LITERAL:				case XQUERY:				case VERSION:				case LITERAL_declare:				case LITERAL_default:				case LITERAL_function:				case LITERAL_variable:				case LITERAL_element:				case DOLLAR:				case LITERAL_import:				case LITERAL_at:				case LITERAL_as:				case LITERAL_empty:				case STAR:				case PLUS:				case LITERAL_item:				case LITERAL_for:				case LITERAL_let:				case LITERAL_some:				case LITERAL_every:				case LITERAL_if:				case LITERAL_order:				case LITERAL_by:				case LITERAL_then:				case LITERAL_else:				case LITERAL_or:				case LITERAL_and:				case LITERAL_cast:				case LT:				case LITERAL_is:				case LITERAL_isnot:				case MINUS:				case LITERAL_div:				case LITERAL_mod:				case LITERAL_union:				case LITERAL_intersect:				case LITERAL_except:				case SLASH:				case DSLASH:				case LITERAL_text:				case LITERAL_node:				case SELF:				case XML_COMMENT:				case AT:				case PARENT:				case LITERAL_child:				case LITERAL_self:				case LITERAL_attribute:				case LITERAL_descendant:				case 123:				case 124:				case LITERAL_parent:				case LITERAL_ancestor:				case 127:				case 128:				case DOUBLE_LITERAL:				case DECIMAL_LITERAL:				case INTEGER_LITERAL:				case LITERAL_comment:				case 133:				case 134:				case XML_PI:				case LITERAL_document:				case LITERAL_collection:				{					module();					astFactory.addASTChild(currentAST, returnAST);					break;				}				case EOF:				{					break;				}				default:				{					throw new NoViableAltException(LT(1), getFilename());				}				}				}				org.exist.xquery.parser.XQueryAST tmp115_AST = null;				tmp115_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.addASTChild(currentAST, tmp115_AST);				match(Token.EOF_TYPE);				xpath_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			}			catch (RecognitionException e) {				if (inputState.guessing==0) {					handleException(e);				} else {					throw e;				}			}			returnAST = xpath_AST;		} finally { // debugging			traceOut("xpath");		}	}