summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
Diffstat (limited to 'Parser')
-rw-r--r--Parser/printgrammar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index 5540698..ec8f4da 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -13,6 +13,7 @@ static void printlabels(grammar *, FILE *);
void
printgrammar(grammar *g, FILE *fp)
{
+ fprintf(fp, "/* Generated by Parser/pgen */\n\n");
fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n");
printdfas(g, fp);
@@ -31,6 +32,8 @@ printnonterminals(grammar *g, FILE *fp)
dfa *d;
int i;
+ fprintf(fp, "/* Generated by Parser/pgen */\n\n");
+
d = g->g_dfa;
for (i = g->g_ndfas; --i >= 0; d++)
fprintf(fp, "#define %s %d\n", d->d_name, d->d_type);