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
02618ab
..
e4a2518
100644
(file)
--- a/
tests/meta.g
+++ b/
tests/meta.g
@@
-1,11
+1,11
@@
s ::= ws grammar ws => "gram"
ws !::= w**
s ::= ws grammar ws => "gram"
ws !::= w**
-grammar ::= r +/ ws => "grammar"
+grammar ::= r +/ ws => "grammar"
r ::= word ^"::=" alternatives /ws
| word ^"!::=" alternatives /ws
alternatives ::= equiAlt +/ (ws ">" ws)
r ::= word ^"::=" alternatives /ws
| word ^"!::=" alternatives /ws
alternatives ::= equiAlt +/ (ws ">" ws)
-equiAlt ::= conjuncts +/ (ws "|" ws) => "alternatives"
+equiAlt ::= conjuncts +/ (ws "|" ws) => "alternatives"
sequence ::= es
> es ws ^"/" e
sequence ::= es
> es ws ^"/" e
@@
-29,25
+29,24
@@
range ::= ec => "range"
| ec ^"-" ec
e ::= word => "nonTerminalY"
| ec ^"-" ec
e ::= word => "nonTerminalY"
- | [(][)] => "epsilon"
+ | [(][)] => "epsilon"
| ^"{" alternatives "}" /ws
| ^"[" (range*) "]"
| ^"[~" (range*) "]"
| ^"{" alternatives "}" /ws
| ^"[" (range*) "]"
| ^"[~" (range*) "]"
- | e ^"+/" e /ws
- | e ^"*/" e /ws
- | e ^"?" /ws
+ | ^"^" quoted /ws
| e ^"~/~" /ws
| e ^"~/~" /ws
-
- | e ^"-" e /ws
-
| ^"!" e /ws
| ^"!" e /ws
- | ^"^" quoted /ws
+
| ^"`" e /ws
| e ^"#" /ws
| ^"`" e /ws
| e ^"#" /ws
- | quoted => "literal"
| (e ws ^"**" > e ws ^"*")
| (e ws ^"**" > e ws ^"*")
+ | e ^"*/" e /ws
| (e ws ^"++" > e ws ^"+")
| (e ws ^"++" > e ws ^"+")
+ | e ^"+/" e /ws
+ | e ^"?" /ws
+
+ | quoted => "literal"
| "(" word ^")" /ws
> ^"(" alternatives ")" /ws
| "(" word ^")" /ws
> ^"(" alternatives ")" /ws
@@
-57,7
+56,7
@@
w !::= " "
| "\n"
| "\r"
an ::= [a-zA-Z0-9_]
| "\n"
| "\r"
an ::= [a-zA-Z0-9_]
-word ::= an++ => "sify"
+word ::= an++
quoted ::= "\"" (([~\"\\] | escaped)*) "\"" => "sify"
escaped ::= "\\n" => "\n"
| "\\r" => "\r"
quoted ::= "\"" (([~\"\\] | escaped)*) "\"" => "sify"
escaped ::= "\\n" => "\n"
| "\\r" => "\r"