Saturday, August 16, 2014

Skulpt - Compilation Process

[Note: To know more about skulpt, see this post

The compilation of Python to JavaScript in Skulpt is done in 3 stages

  1. The Python source code is parsed into a concrete syntax tree [CST]. [Explanation here]
  2. The concrete syntax tree is then converted into an abstract syntax tree [AST].
  3. 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