peggy VS lezer

Compare peggy vs lezer and see what are their differences.

peggy

Peggy: Parser generator for JavaScript (by peggyjs)

lezer

Dev utils and issues for the Lezer core packages (by lezer-parser)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
peggy lezer
8 2
806 29
7.7% -
8.9 4.6
23 days ago 4 months ago
JavaScript JavaScript
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

peggy

Posts with mentions or reviews of peggy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-17.

lezer

Posts with mentions or reviews of lezer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-24.
  • Lezer: A Parsing System for CodeMirror, Inspired by Tree-Sitter
    9 projects | news.ycombinator.com | 24 Mar 2024
    I attempted to use this but was disheartened but the fact that it doesn't statically type node names. Tree Sitter doesn't either but it has much more of an excuse given that it targets C.

    https://github.com/lezer-parser/lezer/issues/8

    The dev seems mildly hostile to outside involvement too, so I moved on. These days I use Chumsky which is Rust rather than Typescript, but also way more awesome, if you can deal with the often incomprehensible compilation errors at least!

    https://github.com/zesterer/chumsky

  • Parsing in JavaScript: all the tools and libraries you can use
    3 projects | news.ycombinator.com | 24 May 2021
    Treesitter is not JS (although the Wasm version can be used from JS). Lezer (https://github.com/lezer-parser/lezer) is similar (it was inspired by Treesitter) and is written in TS.

What are some alternatives?

When comparing peggy and lezer you can also consider the following projects:

PEG.js - PEG.js: Parser generator for JavaScript

tamcher

ohm - A library and language for building parsers, interpreters, compilers, etc.

code-mirror-custom-element - CodeMirror 6 as a custom element (web component)

esprima - ECMAScript parsing infrastructure for multipurpose analysis

codemirror-elements - A set of CodeMirror custom HTML elements

purescript - A strongly-typed language that compiles to JavaScript

generator - Parser generator for the lezer incremental parser

lens-toml-parser - Lenses for toml-parser

jquery.terminal - jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands

toml-parser - Haskell parser and printer for the TOML 1.0.0 file format

terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+