meriyah

A 100% compliant, self-hosted javascript parser with high focus on both performance and stability


Keywords
parsing, ecmascript, javascript, parser, performance, estree, es2018, es2019, es2020, es2021, esnext, lexer, ast, lightweight, acorn, jsx, stability, tc39, typescript
License
ISC
Install
npm install meriyah@1.9.2-dev.20191212

Documentation

meriyah

A "simple" project to port my private code to open source code. The code is independent of Cherow and is completely different.

Meriyah are using a "modular" approach, and call the functions it needs during parsing when it's actually needed.

This improves the performance and reduce the memory neeed to do a simple parse.

This code exist just to show off the concept, and this works for now:

  • Identifier and number parsing
  • Unary and update expression
  • Binary expr
  • Member expr
  • Primary expr
  • Non-parenthesized arrows