Skip to content

Commit

Permalink
Update example documents
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsgroen committed Sep 23, 2020
1 parent dccd941 commit 1bd8ca7
Show file tree
Hide file tree
Showing 5 changed files with 225 additions and 234 deletions.
10 changes: 5 additions & 5 deletions examples/ebnf.ebnf
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ rule = lhs , "=" , rhs , ";" ;
lhs = identifier ;
rhs = identifier
| terminal
| "[" , rhs , "]"
| "{" , rhs , "}"
| "(" , rhs , ")"
| rhs , "|" , rhs
| rhs , "," , rhs ;
| "[" , rhs , "]" (* optional *)
| "{" , rhs , "}" (* repetition *)
| "(" , rhs , ")" (* group *)
| rhs , "|" , rhs (* choice *)
| rhs , "," , rhs (* sequence *);
identifier = letter , { letter | digit | " " } ;
terminal = "'" , character , { character } , "'"
Expand Down
Loading

0 comments on commit 1bd8ca7

Please sign in to comment.