It is necessary to build a syntax tree using the Hack source code. Maybe there are already ready libraries or programs? If not, how is it easier to do this?
My ideas: to conduct lexical analysis, get tokens at the output, and then use the syntax analysis to build the tree itself. With syntactic, everything seems to be clear, but with the lexical main problem - to make up the grammar for the language Hack (HHVM).