These are chat archives for pest-parser/pest

19th
Jun 2018
Robert Masen
@FreeMasen
Jun 19 21:26
I am curious how I might deal with Unicode Categories in a .pest file. Is there a simpler way than defining them myself?
Maybe I am missing something in the documentation?
Christopher Durham
@CAD97
Jun 19 21:36
@FreeMasen As of current, you'd need to include them inline, but the rules (and generating code) I've provided here: https://github.com/CAD97/pest-unicode
I've also got the open PR to add builtins for them: pest-parser/pest#247
I'll be doing the requested case change this week
Robert Masen
@FreeMasen
Jun 19 21:39
:)
Robert Masen
@FreeMasen
Jun 19 23:51
Another question. I am trying to port a .peg file to a .pest file but I am having a hard time figuring out the equivalent syntax for
[ [:Mn:] [:Mc:]
 [:Nd:]
 [:Pc:] ]
Is there a good resource for learning the PEG syntax?
Some of it feels very confusing
Christopher Durham
@CAD97
Jun 19 23:52
Book is WIP but here: https://pest-parser.github.io/book/
What you really need to know as the building blocks are ~ for concatenation, | for choice, + and * for repetition, and everything else is for controlling the output structure