match(NEQ); break; } case GT:
match(EQ); break; } case NEQ:
	public final void comparisonExpr() throws RecognitionException, TokenStreamException, XPathException {				returnAST = null;		ASTPair currentAST = new ASTPair();		org.exist.xquery.parser.XQueryAST comparisonExpr_AST = null;				rangeExpr();		astFactory.addASTChild(currentAST, returnAST);		{		switch ( LA(1)) {		case LITERAL_eq:		case LITERAL_ne:		case LITERAL_lt:		case LITERAL_le:		case LITERAL_gt:		case LITERAL_ge:		{			{			{			switch ( LA(1)) {			case LITERAL_eq:			{				org.exist.xquery.parser.XQueryAST tmp161_AST = null;				tmp161_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp161_AST);				match(LITERAL_eq);				break;			}			case LITERAL_ne:			{				org.exist.xquery.parser.XQueryAST tmp162_AST = null;				tmp162_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp162_AST);				match(LITERAL_ne);				break;			}			case LITERAL_lt:			{				org.exist.xquery.parser.XQueryAST tmp163_AST = null;				tmp163_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp163_AST);				match(LITERAL_lt);				break;			}			case LITERAL_le:			{				org.exist.xquery.parser.XQueryAST tmp164_AST = null;				tmp164_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp164_AST);				match(LITERAL_le);				break;			}			case LITERAL_gt:			{				org.exist.xquery.parser.XQueryAST tmp165_AST = null;				tmp165_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp165_AST);				match(LITERAL_gt);				break;			}			case LITERAL_ge:			{				org.exist.xquery.parser.XQueryAST tmp166_AST = null;				tmp166_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp166_AST);				match(LITERAL_ge);				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			rangeExpr();			astFactory.addASTChild(currentAST, returnAST);			}			break;		}		case LITERAL_is:		case LITERAL_isnot:		{			{			{			switch ( LA(1)) {			case LITERAL_is:			{				org.exist.xquery.parser.XQueryAST tmp167_AST = null;				tmp167_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp167_AST);				match(LITERAL_is);				break;			}			case LITERAL_isnot:			{				org.exist.xquery.parser.XQueryAST tmp168_AST = null;				tmp168_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp168_AST);				match(LITERAL_isnot);				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			rangeExpr();			astFactory.addASTChild(currentAST, returnAST);			}			break;		}		case ANDEQ:		case OREQ:		{			{			{			switch ( LA(1)) {			case ANDEQ:			{				org.exist.xquery.parser.XQueryAST tmp169_AST = null;				tmp169_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp169_AST);				match(ANDEQ);				break;			}			case OREQ:			{				org.exist.xquery.parser.XQueryAST tmp170_AST = null;				tmp170_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp170_AST);				match(OREQ);				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			}			rangeExpr();			astFactory.addASTChild(currentAST, returnAST);			}			break;		}		case EOF:		case RPAREN:		case LITERAL_default:		case LITERAL_collation:		case RCURLY:		case COMMA:		case LITERAL_empty:		case LITERAL_for:		case LITERAL_let:		case LITERAL_where:		case LITERAL_return:		case LITERAL_order:		case LITERAL_ascending:		case LITERAL_descending:		case LITERAL_satisfies:		case LITERAL_case:		case LITERAL_else:		case LITERAL_or:		case LITERAL_and:		case LITERAL_instance:		case LITERAL_castable:		case LITERAL_cast:		case RPPAREN:		{			break;		}		default:			boolean synPredMatched146 = false;			if (((LA(1)==LT))) {				int _m146 = mark();				synPredMatched146 = true;				inputState.guessing++;				try {					{					match(LT);					match(LT);					}				}				catch (RecognitionException pe) {					synPredMatched146 = false;				}				rewind(_m146);				inputState.guessing--;			}			if ( synPredMatched146 ) {				match(LT);				match(LT);				rangeExpr();				astFactory.addASTChild(currentAST, returnAST);				if ( inputState.guessing==0 ) {					comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;														comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(BEFORE,"<<")).add(comparisonExpr_AST));													currentAST.root = comparisonExpr_AST;					currentAST.child = comparisonExpr_AST!=null &&comparisonExpr_AST.getFirstChild()!=null ?						comparisonExpr_AST.getFirstChild() : comparisonExpr_AST;					currentAST.advanceChildToEnd();				}			}			else {				boolean synPredMatched148 = false;				if (((LA(1)==GT))) {					int _m148 = mark();					synPredMatched148 = true;					inputState.guessing++;					try {						{						match(GT);						match(GT);						}					}					catch (RecognitionException pe) {						synPredMatched148 = false;					}					rewind(_m148);					inputState.guessing--;				}				if ( synPredMatched148 ) {					match(GT);					match(GT);					rangeExpr();					astFactory.addASTChild(currentAST, returnAST);					if ( inputState.guessing==0 ) {						comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;																comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)astFactory.make( (new ASTArray(2)).add((org.exist.xquery.parser.XQueryAST)astFactory.create(AFTER,">>")).add(comparisonExpr_AST));															currentAST.root = comparisonExpr_AST;						currentAST.child = comparisonExpr_AST!=null &&comparisonExpr_AST.getFirstChild()!=null ?							comparisonExpr_AST.getFirstChild() : comparisonExpr_AST;						currentAST.advanceChildToEnd();					}				}				else if ((_tokenSet_4.member(LA(1)))) {					{					{					switch ( LA(1)) {					case EQ:					{						org.exist.xquery.parser.XQueryAST tmp175_AST = null;						tmp175_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp175_AST);						match(EQ);						break;					}					case NEQ:					{						org.exist.xquery.parser.XQueryAST tmp176_AST = null;						tmp176_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp176_AST);						match(NEQ);						break;					}					case GT:					{						org.exist.xquery.parser.XQueryAST tmp177_AST = null;						tmp177_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp177_AST);						match(GT);						break;					}					case GTEQ:					{						org.exist.xquery.parser.XQueryAST tmp178_AST = null;						tmp178_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp178_AST);						match(GTEQ);						break;					}					case LT:					{						org.exist.xquery.parser.XQueryAST tmp179_AST = null;						tmp179_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp179_AST);						match(LT);						break;					}					case LTEQ:					{						org.exist.xquery.parser.XQueryAST tmp180_AST = null;						tmp180_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));						astFactory.makeASTRoot(currentAST, tmp180_AST);						match(LTEQ);						break;					}					default:					{						throw new NoViableAltException(LT(1), getFilename());					}					}					}					rangeExpr();					astFactory.addASTChild(currentAST, returnAST);					}				}			else {				throw new NoViableAltException(LT(1), getFilename());			}			}}			}			comparisonExpr_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;			returnAST = comparisonExpr_AST;		}