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
fecabcf
..
d006e87
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-1,7
+1,6
@@
-s ::= w* Grammar w* => "gram"
-ws !::= w*
+s ::= ws grammar ws => "gram"
+ws !::= w**
grammar ::= R+/ws => "grammar"
grammar ::= R+/ws => "grammar"
-Grammar ::= R+ => "grammar"
R ::= word ^"::=" Alternatives
| word ^"!::=" Alternatives
R ::= word ^"::=" Alternatives
| word ^"!::=" Alternatives
@@
-10,9
+9,10
@@
ec ::= [~\]\\\-\~] | escaped
Alternatives ::= EquiAlt +/ ">"
EquiAlt ::= Conjuncts +/ "|" => "alternatives"
Alternatives ::= EquiAlt +/ ">"
EquiAlt ::= Conjuncts +/ "|" => "alternatives"
-sequence ::= Es ^"/" E /ws
- > Es
-Es ::= E+
+sequence ::= Es
+ > Es ^"/" E /ws
+Es ::= E+
+//es ::= E+/ws
Conjuncts ::= rewrite
| rewrite ^"&" sequence
Conjuncts ::= rewrite
| rewrite ^"&" sequence