Scripting Language
Quick facts:
Development time: 3 weeks
Engine: Original
For this project at The Guildhall at SMU, I developed all the essential components of an interpreted scripting language.
This included writing a custom lexical analyzer and token parser (instead of using lex and yacc), a bytecode compiler, and a virtual machine.
The language is a C-like procedural language with built-in integer, string, and vector types.
Its variables are weakly typed, which makes writing code faster and easier for scripters.
The images below show the process of writing a quicksort function in this language, from script to output.
Executable: ZIP 60 KB
Run the included batch file to compile and execute the test script, or try writing your own.
Grammar: DOC 27 KB
|
|