default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = xpointer_AST;
	public final void xpointer() throws RecognitionException, TokenStreamException {				traceIn("xpointer");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST xpointer_AST = null;			org.exist.xquery.parser.XQueryAST ex_AST = null;			Token  nc = null;			org.exist.xquery.parser.XQueryAST nc_AST = null;						switch ( LA(1)) {			case LITERAL_xpointer:			{				org.exist.xquery.parser.XQueryAST tmp111_AST = null;				tmp111_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp111_AST);				match(LITERAL_xpointer);				match(LPAREN);				expr();				ex_AST = (org.exist.xquery.parser.XQueryAST)returnAST;				astFactory.addASTChild(currentAST, returnAST);				match(RPAREN);				if ( inputState.guessing==0 ) {					xpointer_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					xpointer_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(XPOINTER,"xpointer")).add(ex_AST));					currentAST.root = xpointer_AST;					currentAST.child = xpointer_AST!=null &&xpointer_AST.getFirstChild()!=null ?						xpointer_AST.getFirstChild() : xpointer_AST;					currentAST.advanceChildToEnd();				}				xpointer_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case NCNAME:			{				nc = LT(1);				nc_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(nc);				astFactory.addASTChild(currentAST, nc_AST);				match(NCNAME);				if ( inputState.guessing==0 ) {					xpointer_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;					xpointer_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(XPOINTER_ID,"id")).add(nc_AST));					currentAST.root = xpointer_AST;					currentAST.child = xpointer_AST!=null &&xpointer_AST.getFirstChild()!=null ?						xpointer_AST.getFirstChild() : xpointer_AST;					currentAST.advanceChildToEnd();				}				xpointer_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			returnAST = xpointer_AST;		} finally { // debugging			traceOut("xpointer");		}	}