Inlined the |initialContext| variable

This commit is contained in:
David Majda 2010-06-07 16:04:21 +02:00
parent 439c815e48
commit 8a2e21fa3f
2 changed files with 2 additions and 10 deletions

View file

@ -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:",

View file

@ -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: