Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "apg", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "An ABNF Parser Generator - generates recursive-descent parsers from grammars written in a superset of Augmented Backus-Naur Form (ABNF)", | ||
@@ -5,0 +5,0 @@ "main": "./src/exports.js", |
@@ -452,4 +452,2 @@ // This module reads the input grammar file and does a preliminary analysis | ||
var str = ""; | ||
// str += "line : char: text\n"; | ||
// str += "no : offset: text\n"; | ||
var thisChars = this.chars; | ||
@@ -468,2 +466,3 @@ var end; | ||
} | ||
// Display an array of errors of the form `{line: 0, char: 0, msg: "message"}` as ASCII text. | ||
this.errorsToString = function(errors){ | ||
@@ -494,3 +493,3 @@ var str, thisChars, thisLines, line, beg, end; | ||
str += error.char - line.beginChar + ": "; | ||
str += " >>: "; | ||
str += "error: "; | ||
str += error.msg; | ||
@@ -497,0 +496,0 @@ str += "\n"; |
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
329706
7789