Browse Source

Add PEG.js version to "Generated by..." line in generated parsers

redux
David Majda 11 years ago
parent
commit
9917f79991
  1. 2
      src/emitter.js
  2. 2
      src/parser.js

2
src/emitter.js

@ -109,7 +109,7 @@ PEG.compiler.emitter = function(ast) {
return formatCode(
"(function(){",
" /* Generated by PEG.js (http://pegjs.majda.cz/). */",
" /* Generated by PEG.js @VERSION (http://pegjs.majda.cz/). */",
" ",
" var result = {",
" /*",

2
src/parser.js

@ -1,5 +1,5 @@
PEG.parser = (function(){
/* Generated by PEG.js (http://pegjs.majda.cz/). */
/* Generated by PEG.js 0.6.0pre (http://pegjs.majda.cz/). */
var result = {
/*

Loading…
Cancel
Save