Use ebnf iteration/optional inMustache
This commit is contained in:
+1
-9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user