peggyjs/peggy
소개
Peggy: JavaScript용 파서 생성기
개발 도구What you can do
- Simple and expressive grammar syntax
- Integrates both lexical and syntactical analysis
- Parsers have excellent error reporting out of the box
- Based on parsing expression grammar formalism — more powerful than traditional LL(k) and LR(k) parsers
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- +2
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPeggy
Peggy is a simple parser generator for JavaScript that produces fast parsers with excellent error reporting. You can use it to process complex data or computer languages and build transformers, interpreters, compilers and other tools easily.
Peggy is the successor of PEG.js.
Migrating from PEG.js
Peggy version 1.x.x is API compatible with the most recent PEG.js release. Follow these steps to upgrade:
- Uninstall
pegjs(and@types/pegjsif you're using the DefinitelyTyped type definitions - we now include type definitions as part of peggy itself). - Replace all
require("pegjs")orimport ... from "pegjs"withrequire("peggy")orimport ... from "peggy"as appropriate. - Any scripts that use the
pegjscli should now usepeggyinstead. - That's it!
Features
- Simple and expressive grammar syntax
- Integrates both lexical and syntactical analysis
- Parsers have excellent error reporting out of the box
- Based on parsing expression grammar formalism — more powerful than traditional LL(k) and LR(k) parsers
- Usable from your browser, from the command line, or via JavaScript API
- Source map support
Getting Started
Online version is the easiest way to generate a parser. Just enter your grammar, try parsing few inputs, and download generated parser code.
Documentation
Full documentation is available at peggyjs.org.
Development
To get started, check out peggy, install the dependencies, and run build:
git clone https://github.com/peggyjs/peggy.git
cd peggy
npm install
(cd docs && npm install)
(cd web-test && npm install)
npm run build
npm run test:web
Please see the Contribution Guidelines for details on how to contribute code.
Links
- Project website
- Wiki
- Source code
- Issue tracker
- Discussions
- Browser Benchmark Suite
- Browser Test Suite
- Contribution Guidelines
- Discord Server
Peggy was originally developed by David Majda (@dmajda). It is currently maintained by Joe Hildebrand (@hildjj).
You are welcome to contribute code. Unless your contribution is really trivial you should get in touch with us first — this can prevent wasted effort on both sides.
관련 프로젝트 살펴보기
불러오는 중…