traceIn("literal"); try { returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST literal_AST = null;  switch ( LA(1)) { case STRING_LITERAL: { org.exist.xquery.parser.XQueryAST tmp238_AST = null; tmp238_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp238_AST); match(STRING_LITERAL); literal_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { numericLiteral(); astFactory.addASTChild(currentAST, returnAST); literal_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = literal_AST; } finally { traceOut("literal");
returnAST = null; ASTPair currentAST = new ASTPair(); org.exist.xquery.parser.XQueryAST literal_AST = null;  switch ( LA(1)) { case STRING_LITERAL: { org.exist.xquery.parser.XQueryAST tmp238_AST = null; tmp238_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1)); astFactory.makeASTRoot(currentAST, tmp238_AST); match(STRING_LITERAL); literal_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root; break;
	public final void literal() throws RecognitionException, TokenStreamException {				traceIn("literal");		try { // debugging			returnAST = null;			ASTPair currentAST = new ASTPair();			org.exist.xquery.parser.XQueryAST literal_AST = null;						switch ( LA(1)) {			case STRING_LITERAL:			{				org.exist.xquery.parser.XQueryAST tmp238_AST = null;				tmp238_AST = (org.exist.xquery.parser.XQueryAST)astFactory.create(LT(1));				astFactory.makeASTRoot(currentAST, tmp238_AST);				match(STRING_LITERAL);				literal_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			case DOUBLE_LITERAL:			case DECIMAL_LITERAL:			case INTEGER_LITERAL:			{				numericLiteral();				astFactory.addASTChild(currentAST, returnAST);				literal_AST = (org.exist.xquery.parser.XQueryAST)currentAST.root;				break;			}			default:			{				throw new NoViableAltException(LT(1), getFilename());			}			}			returnAST = literal_AST;		} finally { // debugging			traceOut("literal");		}	}