match(LITERAL_declare); org.exist.xquery.parser.XQueryAST tmp82_AST = null; tmp82_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp82_AST);
	public final void namespaceDecl() throws RecognitionException, TokenStreamException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST namespaceDecl_AST = null;		Token  uri = null;		org.exist.xquery.parser.XQueryAST uri_AST = null;		String prefix = null;				org.exist.xquery.parser.XQueryAST tmp80_AST = null;		tmp80_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));		astFactory.addASTChild(currentAST, tmp80_AST);		match(LITERAL_declare);		org.exist.xquery.parser.XQueryAST tmp81_AST = null;		tmp81_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));		astFactory.addASTChild(currentAST, tmp81_AST);		match(LITERAL_namespace);		prefix=ncnameOrKeyword();		astFactory.addASTChild(currentAST, returnAST);		match(EQ);		uri = LT(1);		uri_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(uri);		astFactory.addASTChild(currentAST, uri_AST);		match(STRING_LITERAL);		if ( inputState.guessing==0 ) {			namespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			namespaceDecl_AST= (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(NAMESPACE_DECL,prefix)).add(uri_AST));			currentAST.root = namespaceDecl_AST;			currentAST.child = namespaceDecl_AST!=null &&namespaceDecl_AST.getFirstChild()!=null ?				namespaceDecl_AST.getFirstChild() : namespaceDecl_AST;			currentAST.advanceChildToEnd();		}		namespaceDecl_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;		returnAST = namespaceDecl_AST;	}