3 #include "exceptions.h"
7 extern Catalogue *parsing_cat;
8 int catalex(void) { return Catalogue::catalex(); }
9 void cataerror(const char *err) {
10 Catalogue::catalogueParseError(err);
19 std::list<std::string> *list;
25 %token <string> CTOK_STR
26 %token <number> CTOK_INT
29 %type <boolean_v> maybeOverride
38 CTOK_TAG maybeOverride CTOK_STR strings
39 { parsing_cat->addVals(*$3, $2, -1, *$4);
42 | CTOK_ARRAY maybeOverride CTOK_STR CTOK_INT strings
43 { parsing_cat->addVals(*$3, $2, $4, *$5);
49 CTOK_OVERRIDE { $$ = true; }
55 { $2->push_front(*$1); delete $1; $$ = $2; }
56 | { $$ = new std::list<std::string>(); }