#include <stdlib.h>
#include <string.h>
#include "oconfig.h"
+#include "scanner.h"
struct statement_list_s
{
%type <ci> option
%type <ci> statement
%type <sl> statement_list
+%type <ci> entire_file
%%
string:
entire_file:
statement_list
{
- int i;
- for (i = 0; i < $1.statement_num; i++)
- dump_ci ($1.statement + i, 0);
+ $$.children = $1.statement;
+ $$.children_num = $1.statement.num;
}
;
%%
-#include "lex.yy.c"
-
-/*
-void yyerror (char *s)
-{
- fprintf (stderr, "%s\n", s);
-}
-
-int yylex (void)
-{
- return (getc (stdin));
-}
-*/
-
-int main (int argc, char **argv)
-{
- yyparse ();
- return (0);
-}
-
static char *unquote (const char *orig)
{
char *ret = strdup (orig);