This is the source code gettig slowly written during a series of streams where Olie (@olzh2102) and Peter (@peter-leonov) are trying to re-create the full frontend development stack in pure JavaScript from scratch, including parsing some minimal subset of JavaScript, then interpreting it, making some type checks a-la TypeScript/Flow, playing with bytecode, etc.
Here are the links to the videos:
- Writing a JavaScript lexer (scanner, tokeniser) in JavaScript
- Writing a JavaScript parser in JavaScript
- Unit testing the lexer and parser
- Teaching operator precedence to the pico JavaScript parser
- Dealing with the famous ambiguity of forward slashes in the pico JavaScript parser
- Evaluating the AST to a concrete value