Transpiling JavaScript with Marpa
In order to transpile JavaScript to (any language but first) perl(5), I wanted to have a generic methodology, independent of the target language. The proof of concept being the default transpiling of JavaScript to JavaScript.
Marpa::R2, came again to the rescue: Marpa allows the programmer to have introspection on the grammar. This mean that one can:
- generate automatically ="https://github.com/jddurand/Marpa…