Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
PEG parser written in Fantom
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
LICENSE Add license (EPL)


The implementation of PEG parser in fantom (

The main resources about PEG:
  * some tips and examples:

Licensed under EPL. Special feature of this parser is that it allows to parse really big files, even if the file and/or the parsed tree wouldn't fit into RAM.

Another feature is that it is incremental: you can parse a part of a text, then stop it and parse the rest of the text afterwards. It saves time in situations, when you're getting the text slowly, because it allows to start parsing very early instead of waiting for the full text.

Meta grammar is not hardcoded and can be changed using the parser's API (only PEG expressions are hardcoded). This means, that you can modify/extend the grammar relatively easily, without patching the parser itself.
Something went wrong with that request. Please try again.