Generic syntactic analyser: ParsErl
Róbert Kitlei, László Lövei, Tamás Nagy, Anikó Nagyné Víg, Zoltán Horváth, Zoltán Csörnyei · 2008
The increasing demand in automatic code transformation tools – which can preserve the layout, and can handle the whole macro syntax – led us to develop our scanner and parser tool. ParsErl is a generic syntactic analyser for Erlang. The scanner and the parser are generated from an XML definition of the grammar. The result of the scanning process is a graph, which can be optimised or balanced for applications. The tool can preserve the original layout of the source code, including the original macro definitions. Our preprocessor creates connection between the original source code’s tokens and syntax tree’s nodes. We can provide the substituted and parsed code for the applications and we can generate the original source code back, when it is needed. 1