9 void yyerror(const char *str)
11 fprintf(stderr,"error: %s\n",str);
26 %token WORD FILENAME QUOTE OBRACE EBRACE SEMICOLON ZONETOK FILETOK
32 commands command SEMICOLON
41 ZONETOK quotedname zonecontent
43 printf("Complete zone for '%s' found\n",$2);
48 OBRACE zonestatements EBRACE
59 zonestatements zonestatement SEMICOLON
67 printf("A zonefile name '%s' was encountered\n", $2);
72 OBRACE zonestatements EBRACE SEMICOLON
76 | statements statement
79 statement: WORD | block | quotedname