Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move formula compiler and runtime to separate module #1013

Open
LeaVerou opened this issue Jan 11, 2024 · 0 comments
Open

Move formula compiler and runtime to separate module #1013

LeaVerou opened this issue Jan 11, 2024 · 0 comments

Comments

@LeaVerou
Copy link
Member

Mavo’s formula language is useful even outside of Mavo, and it may be nice to move to a separate library.
This will enable people to integrate it in other apps and frameworks, and will also improve maintainability through separation of concerns.
https://github.com/mavoweb/mavo/blob/main/src/functions.js
We still need to come up with a name (see #1011 )

Right now, these are the parts that would be moved there:

Moving the compiler is likely far easier than moving the runtime, so we can start with that. I suspect a lot of this would be easier once we move to Vue (or another reactivity engine) and don't have to manage the reactivity ourselves (poorly).

This will be about compiling individual expressions, not interpolation with strings, so probably wouldn't include much code from

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant