diff --git a/lib/compiler.js b/lib/compiler.js
index <HASH>..<HASH> 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 <HASH>..<HASH> 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",
Add "Generated by ..." message to the generated parsers.