A simple interpreter for JavaScript 1.1 / ECMAScript 1 in Rust without dependencies.
The pipeline is working like this:
- The lexer analyze the source code
- The parser generate the AST
- IR generation and optimization
- Compilation to bytecode
- The VM execute the compiled code
[~] ECMA-262, first edition (1997) link
I’ve used Codex to assist me. It’s been especially helpful for writing test cases and spotting inconsistencies in the codebase. I still wrote every line of code myself (before cleaning and optimizing things).
I recommend this blog article to understand how LLM assistance can be used without losing control of a technical project.