Specy / rooc

A language for compiling formal mathematical models into static models which are transformed to be solved
https://rooc.specy.app
MIT License
4 stars 0 forks source link

Move function calls outside of the expression #9

Closed Specy closed 1 day ago

Specy commented 2 days ago

Currently function calls have a dyn box to the function inside the PreExp, instead of doing this, make the function call store only the name of the function and the list of parameters, then when evaluating the data, provide a hashmap of callable functions that implement type checking and return type functions. And also an implementation whenever they are called.

This way functions can be created dynamically and appended to the scope by the implementer, and will simplify PreExp significantly