PEG.js VS Crafting Interpreters

Compare PEG.js vs Crafting Interpreters and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
PEG.js Crafting Interpreters
8 45
4,726 8,103
0.0% -
0.0 0.0
over 2 years ago 19 days ago
JavaScript HTML
MIT License GNU General Public License v3.0 or later
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.

PEG.js

Posts with mentions or reviews of PEG.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-10-31.
  • Peg.js: Parser Generator for JavaScript
    1 project | news.ycombinator.com | 24 Nov 2023
  • How do you start your own programming language?
    3 projects | /r/learnprogramming | 31 Oct 2022
    Here's a javascript library that lets you generate your own language that compiles to Javascript. https://pegjs.org/ It's a compiler generator. You can either use the command line tool and feed it your grammar (You have to write that) and use the generated parser.js which can then run your program, or use peg.js as a dependency and generate your parser at run time before feeding it your program.
  • My first Vue app - Subtitle offset editor
    1 project | /r/vuejs | 3 Sep 2022
  • Deno in 2022
    3 projects | /r/node | 9 Jul 2022
    The library they're having trouble with is the most common parser generator in javascript, peg.js, which has about 80% of the market
  • UX mockups with TEXT (markdown)
    1 project | /r/SideProject | 31 Mar 2022
    Currently, I have only POC the grammar and language and parser are created using https://pegjs.org/
  • PEG Parsers: sometimes more appropriate than Regex
    1 project | dev.to | 22 Aug 2021
    In past blog posts, where I've written about PEG, I've used Parsimonious in Python, such as three of my solutions to the 2020 Advent Of Code challenges (here, (here)[https://dev.to/meseta/advent-of-code-day-18-finally-using-peg-grammar-in-python-in-the-way-it-s-supposed-to-3253], and (here)[https://dev.to/meseta/advent-of-code-day-19-abusing-peg-grammar-in-python-the-way-it-s-not-supposed-to-2beg]). This time, because the rest of the website is javascript, I will be using PEG.js instead to avoid adding an extra programming language to the codebase.
  • Formal Logic Rules for a computer-assisted RPG
    1 project | /r/rpg | 6 Jun 2021
    Update: I started writing a grammar for this language in PEG using PEG.js. This was super fun, I'll take a stab at an interpreter next, that should be much harder.
  • I'd like to ask you guys a question, how or in what way is a Programming Language made?
    1 project | /r/AskProgramming | 4 Apr 2021
    I was going to post the same thing. This really helped me understand the concepts better back in the day. They also have examples for some popular languages on their github: https://github.com/pegjs/pegjs/tree/master/examples

Crafting Interpreters

Posts with mentions or reviews of Crafting Interpreters. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-26.

What are some alternatives?

When comparing PEG.js and Crafting Interpreters you can also consider the following projects:

nearley - 📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.

git-internals-pdf - PDF on Git Internals

peggy - Peggy: Parser generator for JavaScript

You-Dont-Know-JS - A book series on JavaScript. @YDKJS on twitter.

Jison - Bison in JavaScript.

tinyrenderer - A brief computer graphics / rendering course

js-yaml - JavaScript YAML parser and dumper. Very fast.

paip-lisp - Lisp code for the textbook "Paradigms of Artificial Intelligence Programming"

Chevrotain - Parser Building Toolkit for JavaScript

CppCoreGuidelines - The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++

markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed

30-days-of-elixir - A walk through the Elixir language in 30 exercises.