Throwing error from antlr parser