Kouprey is a library that can be used to build and run parsers based on the Parsing Expression Grammar (PEG) formalism. It does not have any special requirements beyond standard ECMAScript/JavaScript, and can be used to parse arbitrarily complex languages inside a Web browser or other JavaScript runtime. It has been used to parse complex general purpose programming languages, and comes with numerous examples.
| Tags | Parser JavaScript grammar compiler parsing Libraries |
|---|---|
| Licenses | LGPL |
| Implementation | JavaScript |
Recent releases


Release Notes: A new parser combinator that checks for balanced delimiters is included. There are documentation updates.


Release Notes: It is now much easier to declare Unicode terminals in grammars. Unicode support in general was improved. Documentation has been cleaned up and edited for readability.


Release Notes: This is the first stable, release version. Minor documentation updates were made.


Release Notes: The documentation was completely rewritten. The "Consume" combinator was removed, as it was redundant and slow. This is the final beta; if there are no bugs present, this version will become 1.0.


Release Notes: A bug that prevented the "End" combinator from working properly was fixed. Several bugs in the various examples were fixed. Minor documentation updates were made. Versioning is now done according to release date.
Support for reverse engineering, evaluation, and simulation of communication protocols.