kripken / cashew Goto Github PK
View Code? Open in Web Editor NEWasm.js parser in C++
asm.js parser in C++
For regularity, it would be nice if this was parsed as:
Var('imul', Dot(Dot(Name('stdlib'), 'Math'), 'imul')
It's currently parsed as:
Var('imul', Binary('.', Dot(Name('stdlib'), 'Math'), Name('imul'))
which requires workarounds.
One issue I ran into (that only seemed to show up on OSX) was is that the construction of IString::strings is unordered w.r.t to the IString constructions in parser.cpp. (I was seeing iloops due to map insertions on an uninitialized map.) You might want to either put IString::strings behind a getter (that checks a bool static variable (which you can depend on to start as false)) or put the static constructions in the same file (which are ordered top-to-bottom within the file).
The result of parsing 'function() { do{}while(1); }' seems to be makeStatement(makeDo()) when I would just expect a makeDo().
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.