Browse Source

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

redux
David Majda 12 years ago
parent
commit
a86e06a216
  1. 2
      lib/compiler.js
  2. 2
      lib/metagrammar.js

2
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},",
" ",

2
lib/metagrammar.js

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

Loading…
Cancel
Save