projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
checkpoint
[sbp.git]
/
tests
/
meta.g
diff --git
a/tests/meta.g
b/tests/meta.g
index
0e3bce7
..
5723e6d
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-4,8
+4,7
@@
grammar ::= r +/ ws => "grammar"
r ::= word ^"::=" alternatives /ws
| word ^"!::=" alternatives /ws
r ::= word ^"::=" alternatives /ws
| word ^"!::=" alternatives /ws
-alternatives ::= equiAlt +/ (ws ">" ws)
-equiAlt ::= conjuncts +/ (ws "|" ws)
+alternatives ::= (conjuncts +/ (ws "|" ws)) +/ (ws ">" ws)
conjuncts ::= sequence
| sequence ^"&" e*/ws /ws
conjuncts ::= sequence
| sequence ^"&" e*/ws /ws
@@
-21,10
+20,10
@@
ec ::= [~\-\]\\\~]
range ::= ec => "range"
| ec ^"-" ec
range ::= ec => "range"
| ec ^"-" ec
-e ::= word => "nonTerminal"
+e ::= word => "nonTerminal"
| quoted => "literal"
| ^"()"
| quoted => "literal"
| ^"()"
- | ^"{" sequence "}" /ws
+ | ^"{" sequence "}" /ws
| ^"[" (range*) "]"
| ^"[~" (range*) "]"
| ^"^" quoted /ws
| ^"[" (range*) "]"
| ^"[~" (range*) "]"
| ^"^" quoted /ws