We have a system with many logic expressions, they're implemented as series of boolean functions operating on variables and the rules are stored as XML. As the XML files are compiled into the assembly as resources, they don't change. For performance and extensibility reasons, it's been asked if we could pre-compile the rules.
The logical steps would be read XML -> generate C# expressions -> add expressions to rule class(es) -> add generated classes to application -> replace existing 'expression parse, return value' with call to method in the generated class.
The language is C#, but I'm hoping there's a pattern or similar for this so I can do some research. Even better if there's a config file format or approach that exists to do this.
I've used logic-less template handlers in the past - https://github.com/Handlebars-Net/Handlebars.Net and this in some ways is the opposite, a logic full template handler