peter-leonov / picojs

Full dev stack mini nano JS implementation in JS (for fun)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. Writing a JavaScript lexer (scanner, tokeniser) in JavaScript
  2. Writing a JavaScript parser in JavaScript
  3. Unit testing the lexer and parser
  4. Teaching operator precedence to the pico JavaScript parser
  5. Dealing with the famous ambiguity of forward slashes in the pico JavaScript parser
  6. Evaluating the AST to a concrete value

About

Full dev stack mini nano JS implementation in JS (for fun)


Languages

Language:JavaScript 100.0%