We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example:
const { toJavaScript } = require('metalisp'); const js = toJavaScript('(+ 2 (* x 5) (- y 2))'); console.log(js);
Output: { src: '(x, y) => (2 + (x * 5) + (y - 2))', context: ['x', 'y'] } After translation we can compile expression:
{ src: '(x, y) => (2 + (x * 5) + (y - 2))', context: ['x', 'y'] }
const metavm = require('metavm'); const expression = metavm.createScript('Example', js); const result = expression(3, 7); console.log({ result });
Output: { result: 22 }
{ result: 22 }
The text was updated successfully, but these errors were encountered:
Prototyping JavaScript generation from LISP
b4c514e
Refs: #3
924c542
3963531
b334bdb
No branches or pull requests
Example:
Output:
{ src: '(x, y) => (2 + (x * 5) + (y - 2))', context: ['x', 'y'] }
After translation we can compile expression:
Output:
{ result: 22 }
The text was updated successfully, but these errors were encountered: