4 ms·
I am curious, how does it get an AST from the JS, and compiles it to compute kernels?
by Nican 9y ago
I am curious, how does it get an AST from the JS, and compiles it to compute kernels?
- andars 9y agoLooks like the JS parser is created using Jison, a parser generator, and the generation of GLSL from the AST is performed in src/backend/webgl/function-node.js using a single-pass tree walk.