3 #include "catalogue.lex.h"
4 extern catalogueFlexLexer *catalexer;
5 extern Catalogue *parsing_cat;
6 static int catalex(void) { return catalexer->yylex(); }
9 extern void cataerror(char const *);
17 std::list<std::string> *list;
23 %token <string> CTOK_STR
24 %token <number> CTOK_INT
27 %type <boolean_v> maybeOverride
36 CTOK_TAG maybeOverride CTOK_STR strings
37 { parsing_cat->addVals(*$3, $2, -1, *$4);
40 | CTOK_ARRAY maybeOverride CTOK_STR CTOK_INT strings
41 { parsing_cat->addVals(*$3, $2, $4, *$5);
47 CTOK_OVERRIDE { $$ = true; }
53 { $2->push_front(*$1); delete $1; $$ = $2; }
54 | { $$ = new std::list<std::string>(); }