2017-01-19 05:06:49 +08:00
|
|
|
Pegex is an Acmeist parser framework. It allows you to easily create parsers
|
|
|
|
that will work equivalently in lots of programming languages! The inspiration
|
|
|
|
for Pegex comes from the parsing engine upon which the postmodern programming
|
|
|
|
language Perl 6 is based on. Pegex brings this beauty to the other justmodern
|
2015-12-05 01:28:07 +08:00
|
|
|
languages that have a normal regular expression engine available.
|
|
|
|
|
2017-01-19 05:06:49 +08:00
|
|
|
Pegex gets it name by combining Parsing Expression Grammars (PEG), with
|
2015-12-05 01:28:07 +08:00
|
|
|
Regular Expessions (Regex). That's actually what Pegex does.
|
|
|
|
|
2017-01-19 05:06:49 +08:00
|
|
|
PEG is the cool new way to elegantly specify recursive descent grammars. The
|
|
|
|
Perl 6 language is defined in terms of a self modifying PEG language called
|
|
|
|
Perl 6 Rules. Regexes are familiar to programmers of most modern programming
|
|
|
|
languages. Pegex defines a simple PEG syntax, where all the terminals are
|
2015-12-05 01:28:07 +08:00
|
|
|
regexes. This means that Pegex can be quite fast and powerful.
|
|
|
|
|
2017-01-19 05:06:49 +08:00
|
|
|
Pegex attempts to be the simplest way to define new (or old) Domain Specific
|
|
|
|
Languages (DSLs) that need to be used in several programming languages and
|
|
|
|
environments. Things like JSON, YAML, Markdown etc. It also great for writing
|
2015-12-05 01:28:07 +08:00
|
|
|
parsers/compilers that only need to work in one language.
|