idaholab / MontePy

MontePy is the most user friendly Python library (API) to read, edit, and write MCNP input files.
https://www.montepy.org/
MIT License
32 stars 7 forks source link

Evaluate using metamodels #547

Open MicahGale opened 2 months ago

MicahGale commented 2 months ago

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...

tjlaboss commented 2 months ago

This is an interesting idea that we should seek research funding for.

MicahGale commented 2 months ago

I'd like to see if there's a good library prior to that commitment.