publicodes / tools

Set of utility functions to write tooling for Publicodes models
https://publicodes.github.io/tools/
MIT License
8 stars 0 forks source link

Feat(optim)!: rewrite of the constant folding pass #35

Closed EmileRolley closed 5 months ago

EmileRolley commented 6 months ago

Add a way to serialize parsed rules which facilitate the substitution of constants. Furthermore, the rewrite allows to identify and fixes previous problematic behaviors in the previous constant folding pass (e.g. be aware of the rule's contexte, and conditional applicability of namespaces).