Skip to content

Instantly share code, notes, and snippets.

@ingydotnet
Created August 31, 2010 16:32
Show Gist options
  • Save ingydotnet/559305 to your computer and use it in GitHub Desktop.
Save ingydotnet/559305 to your computer and use it in GitHub Desktop.
Pegex - Perl 6 Rules for Everyone
The best part of Perl 6 is "Perl 6 Rules"<http://en.wikipedia.org/wiki/Perl_6_rules>, a
"PEG"<http://en.wikipedia.org/wiki/Parsing_expression_grammar>
parsing language and a replacement for Perl 5 regular expressions.It is a simple and
readable way to define new languages, includingPerl 6 itself.
"Ingy döt Net"<http://ingy.net/> has taken the best ideas from Perl 6 Rules and created
an "Acmeist"<http://acmeism.org/> parsing language called
"Pegex"<http://www.pegex.org/>. Pegex can be used to define new
languages that work the same in Perl, Python, Ruby, JavaScript
and any other languages that support Pegex.
In this talk, Ingy will show you how to use Pegex in Perl, as simply as using a
regex. He'll also demonstrate how he is using Pegex as the basis
of his Acmeist projects like "YAML"<http://yaml.org/>,
"TestML"<http://testml.org/>, "JSYNC"<http://jsync.org/> and
"C'Dent"<http://cdent.org/>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment