Why do you want antlr parser? There is a pretty decent parser example in fastparse, may it work for you?