Skip to content

Commit

Permalink
* greg.g: update bootstrapped parser to use the new grammar compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
_why committed Aug 11, 2009
1 parent 28c7a79 commit 945404c
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 510 deletions.
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -340,6 +340,7 @@ static char *header= "\
#include <stdio.h>\n\
#include <stdlib.h>\n\
#include <string.h>\n\
struct _GREG;\n\
";

static char *preamble= "\
Expand Down Expand Up @@ -397,7 +398,6 @@ static char *preamble= "\
#define yydata G->data\n\
#define yy G->ss\n\
\n\
struct _GREG;\n\
typedef void (*yyaction)(struct _GREG *G, char *yytext, int yyleng);\n\
typedef struct _yythunk { int begin, end; yyaction action; struct _yythunk *next; } yythunk;\n\
\n\
Expand Down

0 comments on commit 945404c

Please sign in to comment.