Skip to content

Conversation

@patrickroberts
Copy link
Owner

Added compiler that produces JavaScript functions from parser output.

Functions accept a single object of named properties which bind the identifiers in the parsed expression.

By default, the compiler injects bindings for all exported static functions, as well as the constants e and i.

The compiler transforms constant expressions into precomputed literals before generating the function in order to avoid unnecessary computations at runtime.

@patrickroberts patrickroberts merged commit f4328c7 into master Dec 28, 2021
@patrickroberts patrickroberts deleted the feature/compiler branch December 28, 2021 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant