Closed evandrocoan closed 6 years ago
There is no explicit epsilon symbol in the master branch. So you would write this:
S -> | b I | a P | a .
The syntax branch adds a special #epsilon symbol:
Thanks, took me some time to realize you had did S -> |
S -> | b I | a P | a.
P -> a P | b I | a.
I -> a I | b P | b.
Can I use a colon instead of a dot to end lines:
S -> | b I | a P | a;
P -> a P | b I | a;
I -> a I | b P | b;
Or can the line just be ended by the new line \n
character?
S -> | b I | a P | a
P -> a P | b I | a
I -> a I | b P | b
In the syntax branch, you can do both of those things.
https://github.com/mdaines/grammophone/blob/syntax/test/parsing-test.js
I've added this to master in da2b67bc41531597eeca1b4dad586ea28d88e81d.
Thanks! I merged locally the changes and they are working great!
I can just insert
ε
or is there another symbol for it?