I finally read about the other MCNPy: doi: 10.1080/00295639.2022.2153617. Their use of Meta-models is really cool. You essentially write a high level model of what the grammar is, and then the framework generates both the parser grammar, and the template. It can also meta-program dummy classes that provide the elements of the grammar as getters/setters.
The problem is: they used a java metamodel framework.
Instead I would like a very pythonic framework. From a quick search there seems to be at least one such framework: https://github.com/bcmpinc/metamodel. This framework seems dead but it would be interesting to see what else is out there.
Warning: metamodel always refers to an ML process...
I finally read about the other MCNPy: doi: 10.1080/00295639.2022.2153617. Their use of Meta-models is really cool. You essentially write a high level model of what the grammar is, and then the framework generates both the parser grammar, and the template. It can also meta-program dummy classes that provide the elements of the grammar as getters/setters.
The problem is: they used a java metamodel framework.
Instead I would like a very pythonic framework. From a quick search there seems to be at least one such framework: https://github.com/bcmpinc/metamodel. This framework seems dead but it would be interesting to see what else is out there.
Warning: metamodel always refers to an ML process...