Comments (2)
Ah, I updated readme in github after publishing to npm. Take github as the latest doc.
As for async - it depends on what kind of async you want.
- You can try reimplementing JS async syntax in your mini-language like
a + await b(3)
, for that you'd need to define unaryasync
operator. - You can make all evaluators async by default, so that they would wait for result of async function. This way you'd write normal expressions
a + b(3)
, but they would be async under the hood. For that you'd need to defineoperator('+', async (a,b) => await a + await b )
. (I need to check if that'd work - worst case you'd need to write own evaluator of AST, which is not very difficult, example is here)
from subscript.
thanks!
from subscript.
Related Issues (7)
- Bench scopex HOT 3
- Typescript support? HOT 1
- Math.* support? HOT 2
- Import doesn't work (node, jest) HOT 3
- passed wrong type to binary() HOT 1
- How to implement assignment operator (=)? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from subscript.