public class SingleParserTest {
public static void main(String[] args) throws RecognitionException {
String testCase = "select an.mother.id, max(an.bodyWeight) from Animal an group by an.mother.id having max(an.bodyWeight)>1.0";
ANTLRStringStream antlrStream = new ANTLRStringStream( testCase );
HQLLexer lexer = new HQLLexer( antlrStream );
CommonTokenStream tokens = new CommonTokenStream( lexer );
HQLParser parser = new HQLParser( tokens );
statement_return statement = parser.statement();
System.out.println( tokens.getTokens() );
CommonTree tree = (CommonTree) statement.getTree();