diff --git a/odata-parser.pegjs b/odata-parser.pegjs index 6e9b8d5..81400b6 100644 --- a/odata-parser.pegjs +++ b/odata-parser.pegjs @@ -1,4 +1,4 @@ -{ +{{ const methods = { cast: [ 1, 2 ], ceiling: 1, @@ -66,13 +66,6 @@ // mod: 5 // }; - let binds = []; - let precedence = 0; - function reset() { - binds = []; - precedence = 0; - }; - function CollapseObjectArray(options) { const optionsObj = {}; for(const i in options) { @@ -80,6 +73,14 @@ } return optionsObj; }; +}} +{ + let binds = []; + let precedence = 0; + function reset() { + binds = []; + precedence = 0; + }; function Bind(type, value) { binds.push([type, value])