Inlined the |initialContext| variable
This commit is contained in:
parent
439c815e48
commit
8a2e21fa3f
|
@ -998,11 +998,7 @@ PEG.Compiler = {
|
|||
" return { line: line, column: column };",
|
||||
" }",
|
||||
" ",
|
||||
" var initialContext = {",
|
||||
" reportMatchFailures: true",
|
||||
" };",
|
||||
" ",
|
||||
" var result = parse_${startRule}(initialContext);",
|
||||
" var result = parse_${startRule}({ reportMatchFailures: true });",
|
||||
" ",
|
||||
" /*",
|
||||
" * The parser is now in one of the following three states:",
|
||||
|
|
|
@ -3392,11 +3392,7 @@ PEG.grammarParser = (function(){
|
|||
return { line: line, column: column };
|
||||
}
|
||||
|
||||
var initialContext = {
|
||||
reportMatchFailures: true
|
||||
};
|
||||
|
||||
var result = parse_grammar(initialContext);
|
||||
var result = parse_grammar({ reportMatchFailures: true });
|
||||
|
||||
/*
|
||||
* The parser is now in one of the following three states:
|
||||
|
|
Loading…
Reference in a new issue