#javascript-parser #javascript #parser #syntax-tree #ast #abstract #compatible

almond

A new, fast, and general purpose JavaScript parser written in Rust that generates ESTree compatible abstract syntax trees

3 unstable releases

0.2.0 Dec 9, 2020
0.1.1 Nov 30, 2020
0.1.0 Nov 30, 2020

#57 in #javascript-parser

MIT/Apache

1MB
3.5K SLoC

Almond

codecov

A new JavaScript general purpose parser. Almond aims to generate ESTree compatible abstract syntax trees. Almond uses nom for parsing.

This project currently is very work in progress. It can parse popular libraries like jQuery, React, React-DOM, Backbone.js etc... (Check out benches/js/ directory). Some obscure syntax might not parse correctly yet. If you find a bug, please consider reporting it via a GitHub Issue.

Implementation Progress

  • ES5
  • ES2015 (ES6)
  • ES2016 (ES7)
  • ES2017
  • ES2018
  • ES2019
  • ES2020

Dependencies

~5MB
~79K SLoC