compiler_logo

In class we were given 1 month to design and implement a small scripting language, including the lexer, parser, code-generator, and virtual machine, all from scratch. MasterScript is the result of that 1 month. MasterScript provides no memory management, type checking, or code optimization.

  • Engine
    • Home grown
  • Language
    • C++
  • Development Time
    • 1 month
  • Features
    • Function calls with arguments and return values
    • Local variables
    • Number, string and vector datatypes with dynamic typing
    • If/while/return statements
    • Assignment (for variables / vectors)
    • Most standard operators with precedence, bracketing (), indexing [], constants