Skip to content

Commit 3b606d2

Browse files
committed
Update README.md
1 parent 762145f commit 3b606d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ S -> Starting Symbol
1515
a b -> Terminals
1616
S A B E C X Y Z -> Non-Terminals
1717
S YB XA * -> 4th and all following lines are production rules
18-
E YB XA -> You can add multiple non-terminal -> (terminal|non-terminal) relations by seperating via space
18+
E YB XA -> You can add multiple rules from one terminal by seperating via whitespace
1919
A a YE XC -> This reads as A -> a | YE | XC
2020
B b XE YZ
2121
C AA
2222
X b
2323
Y a
2424
Z BB
25+
26+
For a token terminal, simply add the token like a normal terminal. For example Y token will be parsed as Y -> token.
2527
```
2628

2729
After you compiled the .java file you can simply run it via

0 commit comments

Comments
 (0)