diff --git a/lib/compiler.js b/lib/compiler.js index c460f51..be60080 100644 --- a/lib/compiler.js +++ b/lib/compiler.js @@ -441,6 +441,8 @@ PEG.Compiler = { var source = this.formatCode( "(function(){", + " /* Generated by PEG.js (http://pegjs.majda.cz/). */", + " ", " var result = {", " _startRule: ${startRule|string},", " ", diff --git a/lib/metagrammar.js b/lib/metagrammar.js index 642770d..e98023a 100644 --- a/lib/metagrammar.js +++ b/lib/metagrammar.js @@ -1,4 +1,6 @@ PEG.grammarParser = (function(){ + /* Generated by PEG.js (http://pegjs.majda.cz/). */ + var result = { _startRule: "grammar",