Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.
/ picojs Public archive

An educational full development stack implementation of a small subset of JavaScript language

Notifications You must be signed in to change notification settings

peter-leonov/picojs

Repository files navigation

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

An educational full development stack implementation of a small subset of JavaScript language

Resources

Stars

Watchers

Forks