" where Painter = :painter.name\n" +
" on session self.MGRSession;");
ForteLexer lexer = new ForteLexer(stream);
TokenStream tokenStream = new CommonTokenStream(lexer);
ForteParser parser = new ForteParser(tokenStream);
sql_select_return sql = parser.sql_select();
CommonTree tree = (CommonTree) sql.getTree();
System.out.println("SQL:" + tree.toString());
int errors = parser.getNumberOfSyntaxErrors();
if (errors > 0){
Assert.fail("sql_do " + errors + " errors");
}