pegjs-util
Advanced tools
Comparing version 1.3.3 to 1.3.4
{ | ||
"name": "pegjs-util", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Utility Class for PEG.js", | ||
@@ -5,0 +5,0 @@ "main": "PEGUtil.js", |
{ | ||
"name": "pegjs-util", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Utility Class for PEG.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ "pegjs", "parser", "AST", "unroll" ], |
@@ -140,13 +140,9 @@ /* | ||
} | ||
var opts = { | ||
util: { | ||
makeUnroll: PEGUtil.makeUnroll, | ||
makeAST: PEGUtil.makeAST, | ||
__makeAST: makeAST, | ||
__SyntaxError: parser.SyntaxError | ||
} | ||
options.util = { | ||
makeUnroll: PEGUtil.makeUnroll, | ||
makeAST: PEGUtil.makeAST, | ||
__makeAST: makeAST, | ||
__SyntaxError: parser.SyntaxError | ||
}; | ||
if (typeof options.startRule === "string") | ||
opts.startRule = options.startRule; | ||
result.ast = parser.parse(txt, opts); | ||
result.ast = parser.parse(txt, options); | ||
result.error = null; | ||
@@ -153,0 +149,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27966
479