Skip to content

Commit

Permalink
Merge pull request zaach#110 from zealotrunner/patch-1
Browse files Browse the repository at this point in the history
syntax error when not using the built-in lexer
  • Loading branch information
zaach committed Aug 6, 2012
2 parents 95cf157 + bfd7584 commit 802cc6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jison.js
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ lrGeneratorMixin.generateModule = function generateModule (opt) {
out += this.lexer.generateModule();
out += "\nparser.lexer = lexer;";
}
out += "function Parser () { this.yy = {}; }"
out += "\nfunction Parser () { this.yy = {}; }"
+ "Parser.prototype = parser;"
+ "parser.Parser = Parser;"
+ "\nreturn new Parser;\n})();";
Expand Down

0 comments on commit 802cc6b

Please sign in to comment.