Release 941030
[wine/hacks.git] / rc / rc.l
bloba09819f6b674c74cb2d4c1a5590a84542b80af36
1 %{
2 /*
3  *
4  * Copyright  Martin von Loewis, 1994
5  *
6  */
8 static char Copyright[] = "Copyright Martin von Loewis, 1994";
10 #include <string.h>
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include "rc.h"
14 #include "rc.tab.h"
17 ACCELERATORS    return ACCELERATORS;
18 ALT             return ALT;
19 ASCII           return ASCII;
20 BEGIN           return tBEGIN;
21 BITMAP          return tBITMAP;
22 CAPTION         return CAPTION;
23 CHECKBOX        return CHECKBOX;
24 CHECKED         return CHECKED;
25 CLASS           return CLASS;
26 COMBOBOX        return COMBOBOX;
27 CONTROL         return CONTROL;
28 CTEXT           return CTEXT;
29 CURSOR          return CURSOR;
30 DEFPUSHBUTTON   return DEFPUSHBUTTON;
31 DIALOG          return DIALOG;
32 DISCARDABLE     return DISCARDABLE;
33 EDITTEXT        return EDITTEXT;
34 END             return tEND;
35 FIXED           return FIXED;
36 FONT            return FONT;
37 GRAYED          return GRAYED;
38 GROUPBOX        return GROUPBOX;
39 HELP            return HELP;
40 ICON            return ICON;
41 INACTIVE        return INACTIVE;
42 LISTBOX         return LISTBOX;
43 LTEXT           return LTEXT;
44 MENU            return MENU;
45 MENUBARBREAK    return MENUBARBREAK;
46 MENUBREAK       return MENUBREAK;
47 MENUITEM        return MENUITEM;
48 MOVEABLE        return MOVEABLE;
49 LOADONCALL      return LOADONCALL;
50 NOINVERT        return NOINVERT;
51 NOT                     return NOT;
52 NUMBER          return NUMBER;
53 POPUP           return POPUP;
54 PRELOAD         return PRELOAD;
55 PUSHBUTTON      return PUSHBUTTON;
56 PURE            return PURE;
57 RADIOBUTTON     return RADIOBUTTON;
58 RCDATA          return RCDATA;
59 RTEXT           return RTEXT;
60 SCROLLBAR       return SCROLLBAR;
61 SHIFT           return SHIFT;
62 SEPARATOR       return SEPARATOR;
63 STRING          return STRING;
64 STRINGTABLE     return STRINGTABLE;
65 STYLE           return STYLE;
66 VERSIONINFO     return VERSIONINFO;
67 VIRTKEY         return VIRTKEY;
68 \{                      return tBEGIN;
69 \}                      return tEND;
70 [+-]?[0-9]+     yylval.num=atoi(yytext);return NUMBER;
71 0x[0-9A-Fa-f]+L?        yylval.num=strtoul(yytext,0,16);return NUMBER;
72 [A-Za-z][A-Za-z_0-9]*   yylval.str=strdup(yytext);return IDENT;
73 \"[^"]*\"       yylval.str=parse_c_string(yytext);return STRING;
74 \'[^']*\'   yylval.str=strdup(yytext+1);return SINGLE_QUOTED;
75 [ \t\n\r]               ;
76 .                       return yytext[0];