Chris Cunnington-4 wrote
> Try this...
Thanks for that detailed explanation! Very interesting...
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Xtreams-Debugging-Grammars-tp4919654p4919736.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Sean P. DeNigris wrote
> How am I supposed to debug that to find the typo in my giant string
> above?!
Two problems I found copy/pasting grammars from standard docs:
- Repititions (*) were prefix instead of postfix
- "\" had to be escaped to "\\"
I still wonder about debugging techniques, though.
Tudor Girba-2 wrote
> If you are looking for PEG parsers, you can also try using PetitParser as
> it comes with several debugging and inspection tools.
I used Xtreams because I wanted to copy/paste the grammar from the spec
instead of rewriting it in Smalltalk. I don't think that is possible in PP
stepharo wrote
> Xtreams? Just to be sure is PEGParser built using Xtreams?
Yes, there's some kind of bootstrapping process but I'm not clear how it
works and haven't found any documentation.
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Xtreams-Debugging-Grammars-t
Hi,
If you are looking for PEG parsers, you can also try using PetitParser as it
comes with several debugging and inspection tools.
Cheers,
Doru
> On Jun 23, 2016, at 10:23 PM, stepharo wrote:
>
> Hi sean
>
> Xtreams? Just to be sure is PEGParser built using Xtreams?
>
>
> Stef
>
> Le 23
Hi sean
Xtreams? Just to be sure is PEGParser built using Xtreams?
Stef
Le 23/6/16 à 02:20, Sean P. DeNigris a écrit :
I converted parts of rfc 5322 to the following:
grammarEmailAddress
^'addrspec <- localpart "@" domain
localpart <- dotatom / quotedstring /* obs
I converted parts of rfc 5322 to the following:
grammarEmailAddress
^'addrspec <- localpart "@" domain
localpart <- dotatom / quotedstring /* obs-local-part */
domain <- dotatom / domainliteral /* obs-domain */
domainliteral <- [CFWS] "[" *([FWS] dtext) [FW