pseudo A3: parsing using antlr