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

Enhance parser to expose select functional operators for math that pass thru to javascript Math.{function} #1066

Open
RobMackie opened this issue Mar 29, 2023 · 0 comments

Comments

@RobMackie
Copy link
Contributor

SB3 OpenSBP supports ceiling and a few other mathematical operators that can be trivially implemented by creating an entry in the pegjs file that passes through to an underlying javascript function.

For example we can implement CEIL(x) by passing through to Math.ceil(x) or COS(y) which is resolved by a direct call of Math.cos(y)

The easiest and must useful solution is simply to enumerate all of the single argument functions of the Math javascript library. we can worry about other functions later if we care about that eventually.

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

3 participants