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
eb793c5
..
f2dfb17
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-7,16
+7,15
@@
NonTerminal = Word "=" RHS /ws
// use 'a'-'z' or 'a-z' instead of [a-z]?
// EOF token?
// #include (with renaming?)
// use 'a'-'z' or 'a-z' instead of [a-z]?
// EOF token?
// #include (with renaming?)
-// ANTLR uses ! and ^ suffixes
RHS = (Sequence +/ (ws! "|" ws!)) +/ (ws! ">" ws!)
Elements = e*/ws
PreSequence = ps:: Elements
RHS = (Sequence +/ (ws! "|" ws!)) +/ (ws! ">" ws!)
Elements = e*/ws
PreSequence = ps:: Elements
- | (Quoted|Word) ^"::" PreSequence /ws
- > PreSequence ^"/" e /ws
- | PreSequence ^"->" e /ws
+ | (Quoted|Word) ^"::" PreSequence /ws
+ > PreSequence ^"/" e /ws
+ | PreSequence ^"->" e /ws
Sequence = psx:: PreSequence
| Sequence ^"&" Elements /ws
Sequence = psx:: PreSequence
| Sequence ^"&" Elements /ws
@@
-45,7
+44,6
@@
e = (Quoted|Word) ^":" e
| e ^"!"
| e ^"?" /ws
| ^"^" Quoted
| e ^"!"
| e ^"?" /ws
| ^"^" Quoted
- | Quoted ^"^"
> ^"(" RHS ")" /ws
| ^"~" e
> ^"(" RHS ")" /ws
| ^"~" e