Use ebnf iteration/optional inMustache

This commit is contained in:
kpdecker
2013-07-24 23:39:33 -05:00
parent c373d1c6d4
commit 117239ca7c
2 changed files with 32 additions and 46 deletions
+1 -9
View File
@@ -61,18 +61,10 @@ simpleInverse
;
inMustache
: path params hash -> [[$1].concat($2), $3]
| path params -> [[$1].concat($2), null]
| path hash -> [[$1], $2]
| path -> [[$1], null]
: path param* hash? -> [[$1].concat($2), $3]
| dataName -> [[$1], null]
;
params
: params param { $1.push($2); $$ = $1; }
| param -> [$1]
;
param
: path -> $1
| STRING -> new yy.StringNode($1)