Open mingodad opened 2 years ago
I'm also looking at nez
and found that you seem to have the most update version of it but decided to abandon it.
Can you tell me why ?
Have you discovered a flaw on it ?
I'm just starting looking at it and I'm curious to know why it doesn't went further and widespread, because it main idea is a nice one Open Grammar Language
.
I did some fixes for the EBNF generation on https://github.com/mingodad/peg and noticed that this rule could be simplified and my direct translation to EBNF is shown properly this way.
CharLiteral <- [\'] <('\'' / ![\'] .)> [\']
To:
CharLiteral <- ['] <('\'' / !['] .)> [']
After a small temp change in
InterpolatedStringLiteral
fromCafeBabe.peg
and usingpeg
from https://github.com/mingodad/peg that has an extension to output an EBNF understood by https://www.bottlecaps.de/rr/ui (that still needed some small manual fixes) we can have a nice railroad diagram (https://en.wikipedia.org/wiki/Syntax_diagram) for documenting/understand the grammar.Copy and paste the EBNF shown bellow at https://www.bottlecaps.de/rr/ui on the tab Edit Grammar then click on the tab View Diagram.