%{ /* * * Copyright Martin von Loewis, 1994 */ #include #include #include "parser.h" #include "windows.h" int yylex(void); int yyerror(const char *s); %} %union{ gen_res *res; char *str; int num; struct rc_style *style; } %token NUMBER %token tSTRING SINGLE_QUOTED IDENT %token ACCELERATORS ALT ASCII tBEGIN tBITMAP CAPTION CHECKBOX CHECKED %token CLASS COMBOBOX CONTROL CTEXT CURSOR DEFPUSHBUTTON DIALOG %token DISCARDABLE EDITTEXT tEND tFIXED FONT GRAYED GROUPBOX HELP ICON %token IDENT INACTIVE LISTBOX LTEXT MENU MENUBARBREAK MENUBREAK MENUITEM %token MOVEABLE LOADONCALL NOINVERT NOT NOT_SUPPORTED POPUP PRELOAD %token PURE PUSHBUTTON RADIOBUTTON RCDATA RTEXT SCROLLBAR SHIFT SEPARATOR %token SINGLE_QUOTED tSTRING STRINGTABLE STYLE VERSIONINFO VIRTKEY %type resource_file resource resources resource_definition accelerators %type events bitmap cursor dialog dlg_attributes controls %type generic_control labeled_control control_desc font icon %type iconinfo menu menu_body item_definitions rcdata raw_data raw_elements %type stringtable strings versioninfo %type acc_options item_options %type