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
110964f
..
d11981b
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-1,9
+1,10
@@
s ::= Grammar ws => "gram"
s ::= Grammar ws => "gram"
-w !::= " "
+w ::= " "
| "\n"
| "\r"
| "\n"
| "\r"
-ws !::= w** | w** "//" (~[\n]*) "\n" !ws
-wp !::= w++
+ws ::= w** => ()
+ | w** "//" (~[\n]*) "\n" ws => ()
+wp ::= w++
Grammar ::= r +/ ws => "grammar"
r ::= word ^"::=" alternatives /ws
Grammar ::= r +/ ws => "grammar"
r ::= word ^"::=" alternatives /ws
@@
-18,7
+19,7
@@
Conjuncts ::= Sequence
ps ::= e*/ws => "ps"
| (e+/ws !ws)? "^" Quoted (!ws e+/ws)? => "ps2"
psy ::= ps
ps ::= e*/ws => "ps"
| (e+/ws !ws)? "^" Quoted (!ws e+/ws)? => "ps2"
psy ::= ps
- | ps wp ^"/" !ws e
+ | ps !wp ^"/" !ws e
psx ::= psy => "psy"
// | e "<-" psy /ws => "psyl"
| psy "->" e /ws => "psyr"
psx ::= psy => "psy"
// | e "<-" psy /ws => "psyl"
| psy "->" e /ws => "psyr"
@@
-26,7
+27,7
@@
psx ::= psy => "psy"
Sequence ::= Quoted => "qprod"
> psx => "psx"
| psx "=>" ^"[]" /ws
Sequence ::= Quoted => "qprod"
> psx => "psx"
| psx "=>" ^"[]" /ws
- | psx ^"=>" (word|Quoted) /ws
+ | psx ^"=>" ("()"|word|Quoted) /ws
ec ::= ~[\-\]\\]
| escaped
ec ::= ~[\-\]\\]
| escaped