[Note: To know more about skulpt, see this post]
The compilation of Python to JavaScript in Skulpt is done in 3 stages
The compilation of Python to JavaScript in Skulpt is done in 3 stages
- The Python source code is parsed into a concrete syntax tree [CST]. [Explanation here]
- The concrete syntax tree is then converted into an abstract syntax tree [AST].
- The AST is traversed and JavaScript code is generated for each construct/node in the tree.
My aim is to write blog posts that document the internals of each of the three stages. I will post the links to each post as and when I'm done with them.
No comments:
Post a Comment