This is an initial implementation of the MuIL AST. The AST has been intentionally pared back to the bare essentials, leaving the task of lowering to the higher level MetaMu compilers. For example, there is only a single conditional statement, a single looping construct, etc. It is in the MuJS compiler package so that we can begin lowering TypeScript ASTs to this format and serializing them. We will need separate Go projections of these shapes in order to deserialize and evaluate programs to produce MuGL from within the runtime/evaluation engine. I'm sure the shape of these things will need to change -- and there are a handful of open questions -- however, this is a start...
181 B
181 B
MuJS
This directory contains Mu's JavaScript compiler.
It implements a subset of JavaScript with TypeScript-style type annotations, and can compile that subset into MuPack/IL.