summaryrefslogtreecommitdiffstats
path: root/Parser/printgrammar.c
diff options
context:
space:
mode:
Diffstat (limited to 'Parser/printgrammar.c')
-rw-r--r--Parser/printgrammar.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/Parser/printgrammar.c b/Parser/printgrammar.c
index 5d1d9e0..1cd45ee 100644
--- a/Parser/printgrammar.c
+++ b/Parser/printgrammar.c
@@ -20,9 +20,7 @@ static void printdfas(grammar *, FILE *);
static void printlabels(grammar *, FILE *);
void
-printgrammar(g, fp)
- grammar *g;
- FILE *fp;
+printgrammar(grammar *g, FILE *fp)
{
fprintf(fp, "#include \"pgenheaders.h\"\n");
fprintf(fp, "#include \"grammar.h\"\n");
@@ -37,9 +35,7 @@ printgrammar(g, fp)
}
void
-printnonterminals(g, fp)
- grammar *g;
- FILE *fp;
+printnonterminals(grammar *g, FILE *fp)
{
dfa *d;
int i;
@@ -50,10 +46,7 @@ printnonterminals(g, fp)
}
static void
-printarcs(i, d, fp)
- int i;
- dfa *d;
- FILE *fp;
+printarcs(int i, dfa *d, FILE *fp)
{
arc *a;
state *s;
@@ -71,9 +64,7 @@ printarcs(i, d, fp)
}
static void
-printstates(g, fp)
- grammar *g;
- FILE *fp;
+printstates(grammar *g, FILE *fp)
{
state *s;
dfa *d;
@@ -93,9 +84,7 @@ printstates(g, fp)
}
static void
-printdfas(g, fp)
- grammar *g;
- FILE *fp;
+printdfas(grammar *g, FILE *fp)
{
dfa *d;
int i, j;
@@ -115,9 +104,7 @@ printdfas(g, fp)
}
static void
-printlabels(g, fp)
- grammar *g;
- FILE *fp;
+printlabels(grammar *g, FILE *fp)
{
label *l;
int i;