… | |
… | |
242 | wis |
242 | wis |
243 | wiz |
243 | wiz |
244 | x |
244 | x |
245 | xrays |
245 | xrays |
246 | y |
246 | y |
|
|
247 | |
|
|
248 | Object |
|
|
249 | Str |
|
|
250 | Dex |
|
|
251 | Con |
|
|
252 | Wis |
|
|
253 | Cha |
|
|
254 | Int |
|
|
255 | Pow |
|
|
256 | More |
247 | ); |
257 | ); |
248 | |
258 | |
249 | open GPERF, "|-", "gperf -m50 >kw_hash.h" |
259 | open GPERF, "|-", "gperf -m50 >kw_hash.h" |
250 | or die "gperf: $!"; |
260 | or die "gperf: $!"; |
251 | |
261 | |
… | |
… | |
254 | %enum |
264 | %enum |
255 | %define class-name kw_lex |
265 | %define class-name kw_lex |
256 | %define lookup-function-name match |
266 | %define lookup-function-name match |
257 | %struct-type |
267 | %struct-type |
258 | %compare-strncmp |
268 | %compare-strncmp |
259 | %ignore-case |
|
|
260 | %delimiters=, |
269 | %delimiters=, |
261 | struct keyword_idx { const char *name; enum keyword index; }; |
270 | struct keyword_idx { const char *name; enum keyword index; }; |
262 | %% |
271 | %% |
263 | EOF |
272 | EOF |
264 | |
273 | |