Re: [Pharo-users] Xtreams: Debugging Grammars

2016-10-22 Thread Sean P. DeNigris
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.

Re: [Pharo-users] Xtreams: Debugging Grammars

2016-06-26 Thread Sean P. DeNigris
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.

Re: [Pharo-users] Xtreams: Debugging Grammars

2016-06-23 Thread Sean P. DeNigris
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

Re: [Pharo-users] Xtreams: Debugging Grammars

2016-06-23 Thread Sean P. DeNigris
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

Re: [Pharo-users] Xtreams: Debugging Grammars

2016-06-23 Thread Tudor Girba
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

Re: [Pharo-users] Xtreams: Debugging Grammars

2016-06-23 Thread stepharo
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

[Pharo-users] Xtreams: Debugging Grammars

2016-06-22 Thread Sean P. DeNigris
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