Pegged, From EBNF to PEG

Philippe Sigaud philippe.sigaud at gmail.com
Tue Mar 13 15:51:49 PDT 2012


On Mon, Mar 12, 2012 at 13:43, bls <bizprac at orange.fr> wrote:

> Just WOW!

Thanks! Don't be too excited, it's still quite slow as a parser. But
that is a fun project :)

> Nice to have on your WIKI would be a EBNF to PEG sheet.
>
> Wirth EBNF      Pegged
> A = BC.         A <- B C
> A = B|C.        A <- C / C
> A = [B].        A <- B?
> A = {B}.        A <- B*

fact is, I don't know EBNF that much. I basically learned everything I
know about parsing or grammars while coding Pegged in February :) I
probably made every mistakes in the book.

Hey, it's a github public wiki, I guess you can create a new page?


More information about the Digitalmars-d-announce mailing list