Skip to content

Commit

Permalink
Add "Generated by ..." message to the generated parsers.
Browse files Browse the repository at this point in the history
  • Loading branch information
dmajda committed Apr 19, 2010
1 parent f37ca3f commit a86e06a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ PEG.Compiler = {

var source = this.formatCode(
"(function(){",
" /* Generated by PEG.js (http://pegjs.majda.cz/). */",
" ",
" var result = {",
" _startRule: ${startRule|string},",
" ",
Expand Down
2 changes: 2 additions & 0 deletions lib/metagrammar.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a86e06a

Please sign in to comment.