Add "Generated by ..." message to the generated parsers.

This commit is contained in:
David Majda 2010-04-19 19:54:28 +02:00
parent f37ca3fcdb
commit a86e06a216
2 changed files with 4 additions and 0 deletions

View file

@ -441,6 +441,8 @@ PEG.Compiler = {
var source = this.formatCode(
"(function(){",
" /* Generated by PEG.js (http://pegjs.majda.cz/). */",
" ",
" var result = {",
" _startRule: ${startRule|string},",
" ",

View file

@ -1,4 +1,6 @@
PEG.grammarParser = (function(){
/* Generated by PEG.js (http://pegjs.majda.cz/). */
var result = {
_startRule: "grammar",