Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mistlog/react-peg
A react style parser generator based on PEG.js
https://github.com/mistlog/react-peg
parser parser-generator peg pegjs react
Last synced: 2 months ago
JSON representation
A react style parser generator based on PEG.js
- Host: GitHub
- URL: https://github.com/mistlog/react-peg
- Owner: mistlog
- License: mit
- Created: 2019-08-24T03:03:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:35:08.000Z (almost 2 years ago)
- Last Synced: 2024-11-10T09:19:21.051Z (3 months ago)
- Topics: parser, parser-generator, peg, pegjs, react
- Language: TypeScript
- Homepage: https://mistlog.github.io/react-peg/
- Size: 390 KB
- Stars: 23
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - react-peg
README
# React Peg · [![Build Status](https://github.com/mistlog/react-peg/workflows/build/badge.svg)](https://github.com/mistlog/react-peg/workflows/build/badge.svg) [![Coverage Status](https://coveralls.io/repos/github/mistlog/react-peg/badge.svg)](https://coveralls.io/github/mistlog/react-peg)
React Peg is a react style parser generator based on PEG.js.
* Type Checking: With typescript & jsx support, you don't need to play with grammar as string any more.
* Rule-Based: Build encapsulated rules and compose them to make complex grammar, and you can reuse them just like UI components.
* Easy to Debug & Unit Test: Since rule is written in JavaScript instead of string, you can easily debug & test grammar and parser.
## Playground
https://mistlog.github.io/react-peg-playground/
## Documentation
You can find the React Peg documentation [on the website](https://mistlog.github.io/react-peg/).
## License
React Peg is [MIT licensed](https://github.com/mistlog/react-peg/blob/master/LICENSE).