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
eba580e
..
807f15f
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-8,11
+8,11
@@
Conjuncts ::= Sequence
| Sequence ^"&" Elements /ws
| Sequence ^"&~" Elements /ws
Elements ::= e*/ws
| Sequence ^"&" Elements /ws
| Sequence ^"&~" Elements /ws
Elements ::= e*/ws
-NamedElements ::= (e | word ^":" e) */ ws
-PreSequence ::= NamedElements => "ps"
+PreSequence ::= Elements => "ps"
| PreSequence !wp ^"/" !ws e
| PreSequence ^"->" e /ws
| PreSequence !wp ^"/" !ws e
| PreSequence ^"->" e /ws
+ | (Quoted|word) ^"::" PreSequence /ws
| PreSequence ^"=>" ("[]"|"()"|word|Quoted) /ws
Sequence ::= PreSequence => "psx"
| PreSequence ^"=>" ("[]"|"()"|word|Quoted) /ws
Sequence ::= PreSequence => "psx"
@@
-22,12
+22,13
@@
ec ::= ~[\-\]\\]
Range ::= ec => "range"
| ec ^"-" ec
Range ::= ec => "range"
| ec ^"-" ec
-e ::= word => "nonTerminal"
+e ::=
+ (Quoted|word) ^":" e
+ > word => "nonTerminal"
| Quoted => "literal"
| ^"()"
| ^"{" Sequence "}" /ws
| ^"[" Range* "]"
| Quoted => "literal"
| ^"()"
| ^"{" Sequence "}" /ws
| ^"[" Range* "]"
-
| e ^"++" /ws -> ~[/]
| e ^"+" /ws -> ~[+]
| e ^"++/" e /ws
| e ^"++" /ws -> ~[/]
| e ^"+" /ws -> ~[+]
| e ^"++/" e /ws