Skip to content

lucrbvi/tinyjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyJS

A simple interpreter for JavaScript 1.1 / ECMAScript 1 in Rust without dependencies.

The pipeline is working like this:

  1. The lexer analyze the source code
  2. The parser generate the AST
  3. IR generation and optimization
  4. Compilation to bytecode
  5. The VM execute the compiled code

[~] ECMA-262, first edition (1997) link

LLM usage for code

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.

About

A JavaScript 1.1 (ES1) interpreter without dependencies

Resources

License

Stars

Watchers

Forks

Contributors

Languages