1 /* -*- indented-text -*- */
10 #define ECHO fwrite(yytext, yyleng, 1, yyout)
19 CHAR [0-9a-zA-Z_/\-\*\.]
24 usb_driver { ECHO; return USB_DRIVER;}
25 devprefix { ECHO; return DEV_PREFIX;}
26 devtype { ECHO; return DEV_TYPE;}
27 char { ECHO; return BLOCK_DEV;}
28 block { ECHO; return CHAR_DEV;}
29 binary { ECHO; return BINARY;}
30 bInterfaceClass { ECHO; return INTERFACE_CLASS;}
31 bInterfaceSubClass { ECHO; return INTERFACE_SUB_CLASS;}
32 bInterfaceProtocol { ECHO; return INTERFACE_PROTOCOL;}
33 id { ECHO; return ID;}
34 upscript { ECHO; return UPSCRIPT;}
35 downscript { ECHO; return DOWNSCRIPT;}
36 {EQ} { ECHO; return EQUALS;}
37 {SC} { ECHO; return SEMICOLON;}
38 {BO} { ECHO; return BRACKET_OPEN;}
39 {BC} { ECHO; return BRACKET_CLOSE;}
40 {CHAR}+ { ECHO; yylval.string = (char *)strdup(yytext); return STRING;}