--- parser3/src/main/compile.y 2001/03/16 09:52:59 1.103 +++ parser3/src/main/compile.y 2001/03/19 16:44:01 1.105 @@ -1,9 +1,9 @@ -/* +/** @file Parser Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.103 2001/03/16 09:52:59 paf Exp $ + $Id: compile.y,v 1.105 2001/03/19 16:44:01 paf Exp $ */ /* @@ -50,6 +50,7 @@ int yylex(YYSTYPE *lvalp, void *pc); #define POOL *PC->pool #undef NEW #define NEW new(POOL) +#ifndef DOXYGEN_SHOULD_SKIP_THIS %} %pure_parser @@ -130,7 +131,7 @@ control_method: '@' STRING '\n' YYERROR; } if(command==CLASS_NAME) { - if(PC->cclass!=&PC->request->root_class) { // already changed from default? + if(PC->cclass!=&PC->request->ROOT) { // already changed from default? strcpy(PC->error, "class already have a name '"); strncat(PC->error, PC->cclass->name().cstr(), 100); strcat(PC->error, "'"); @@ -143,7 +144,7 @@ control_method: '@' STRING '\n' PC->cclass=NEW VClass(POOL); PC->cclass->set_name(*name); // defaulting base. may change with @BASE - PC->cclass->set_base(PC->request->root_class); + PC->cclass->set_base(PC->request->ROOT); // append to request's classes PC->request->classes().put(*name, PC->cclass); } else { @@ -158,7 +159,7 @@ control_method: '@' STRING '\n' PC->request->use_file(file.cstr()); } } else if(command==BASE_NAME) { - if(PC->cclass->base()!=&PC->request->root_class) { // already changed from default? + if(PC->cclass->base()!=&PC->request->ROOT) { // already changed from default? strcpy(PC->error, "class already have a base '"); strncat(PC->error, PC->cclass->base()->name().cstr(), 100); strcat(PC->error, "'"); @@ -520,6 +521,7 @@ empty_string_value: /* empty */ { $$=VL( empty: /* empty */ { $$=N(POOL) }; %% +#endif /* 000$111(2222)00