peggy
PEG.js
Our great sponsors
peggy | PEG.js | |
---|---|---|
8 | 8 | |
806 | 4,726 | |
7.7% | 0.0% | |
8.9 | 0.0 | |
25 days ago | over 2 years ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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
- Peggy: Parser Generator for JavaScript
- GitHub - peggyjs/peggy: Peggy: Parser generator for JavaScript
- Peggy: Maintained fork of PEG.js parser generator
-
Creating a custom parser with PEGJS
The PEG.js project got taken over by a new maintainer who locked everyone else out, never shipped a release, and then ignored repeated requests to transfer the project back to the community. So the community forked it to a new project - Peggy, which is where ongoing development happens: https://github.com/peggyjs/peggy
-
How to make your own programming language in JavaScript
NOTE: The original PEG.js project is not maintained anymore, but there is a new fork, Peggy that is maintained and it's backward compatible with PEG.js so it will be easy to switch.
-
Show HN: DTL: a language and JavaScript lib to transform and manipulate data
Thanks. Yes, DTL's core textual syntax is described with PEG. I make use of the Peggy (https://peggyjs.org/) PEG processor to build up the AST that is used to actually process DTL.
There are C based PEG processors, which I've looked at once or twice also, but I haven't sat down to try to convert it. Mostly out of a desire to get the existing module to work well. A working module for one language is better than a partially working module for multiple. :P
-
Parsing in JavaScript: all the tools and libraries you can use
hmm this article is a bit outdated; peg.js (mentioned in the article) has been discountined for a few years now; recently the project was picked up by another team under the name peggy.js https://github.com/peggyjs/peggy
PEG.js
- Peg.js: Parser Generator for JavaScript
-
How do you start your own programming language?
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
-
Deno in 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)
Currently, I have only POC the grammar and language and parser are created using https://pegjs.org/
-
PEG Parsers: sometimes more appropriate than Regex
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
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?
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
What are some alternatives?
lezer - Dev utils and issues for the Lezer core packages
nearley - 📜🔜🌲 Simple, fast, powerful parser toolkit for JavaScript.
ohm - A library and language for building parsers, interpreters, compilers, etc.
Jison - Bison in JavaScript.
esprima - ECMAScript parsing infrastructure for multipurpose analysis
js-yaml - JavaScript YAML parser and dumper. Very fast.
purescript - A strongly-typed language that compiles to JavaScript
Chevrotain - Parser Building Toolkit for JavaScript
lens-toml-parser - Lenses for toml-parser
markdown-it - Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed
jquery.terminal - jQuery Terminal Emulator - JavaScript library for creating web-based terminals with custom commands
csv-parser - Streaming csv parser inspired by binary-csv that aims to be faster than everyone else