Pegger 1.0.0Parsing Expression Grammar (PEG) for when Regular Expressions just aren't enough!
Parsing Expression Grammar (PEG) for when Regular Expressions just aren't enough!
Pegger is a Parsing Expression Grammar (PEG) implementation. It lets you create text parsers by building up a tree of simple matching rules.
Advanced parsing options let you look ahead with predicates and the returned tree of match results gives you plenty of options for transforming it into useful data.
Install
To install Pegger with Fantom Pod Manager, cut'n'paste the following into a cmd prompt, terminal or shell:
Or to install Pegger with the Fantom Repository Manager (fanr), cut'n'paste the following into a cmd prompt, terminal or shell:
Or to install manually, download the pod file and copy it to the %FAN_HOME%/lib/fan/
directory.
Use
To use Pegger in a Fantom project, add a dependency to the project's build.fan
:
depends = ["sys 1.0", ..., "afPegger 1.0.0 - 1.0"]
Documentation
Information
Meta information on the Pegger pod:
- Published by
- Steve Eynon
- Organisation
- Alien-Factory
- Pod file size
- 120.05 kB
- Licence
- ISC
- Built on
- 12th Jun 2019
- Source code
- via Git at https://github.com/SlimerDude/afPegger
- Depends on
- sys
- Referenced by
- Javascript Compatible
Dependency Graph
Release History
There have been 9 releases of Pegger: