If you need something custom, you might consider reading [Federico Tomassetti’s] tutorial on using ANTLR to build ... creating an abstract syntax tree, and more. The example compiler generates ...