这个小玩具是看完王垠的怎样写一个解释器之后完成的
parser太累了,所以利用acorn做parser,(之前babel好像也是利用的acorn做的parser)
虽然还有部分没有实现, 但是根据已有的思路,可以快速的实现了 比如 switch根据已有的for实现就可以很容易实现,类似的还有do-while, while
我自己只做了很简单的测试, 可以看parse-test.js,或者直接clone项目运行下interpreter.js
js元循环解释器
parser太累了,所以利用acorn做parser,(之前babel好像也是利用的acorn做的parser)
虽然还有部分没有实现, 但是根据已有的思路,可以快速的实现了 比如 switch根据已有的for实现就可以很容易实现,类似的还有do-while, while
我自己只做了很简单的测试, 可以看parse-test.js,或者直接clone项目运行下interpreter.js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.