You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: