aliases_scan.l (6cec9cad762b6476313fb1f8e931a1647822db6b) | aliases_scan.l (e56bad4a94aff7e3e43200568b211de872a52aea) |
---|---|
1%{ 2 3#include <string.h> | 1%{ 2 3#include <string.h> |
4#include "dma.h" |
|
4#include "aliases_parse.h" 5 6#define YY_NO_INPUT 7 | 5#include "aliases_parse.h" 6 7#define YY_NO_INPUT 8 |
8int yylex(void); | |
9%} 10 11%option yylineno 12%option nounput 13 14%% 15 16[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;} 17^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */ 18[:,\n] return yytext[0]; 19(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */ 20\\\n ;/* ignore continuation. not allowed in comments */ 21. return T_ERROR; 22<<EOF>> return T_EOF; 23 24%% | 9%} 10 11%option yylineno 12%option nounput 13 14%% 15 16[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;} 17^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */ 18[:,\n] return yytext[0]; 19(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */ 20\\\n ;/* ignore continuation. not allowed in comments */ 21. return T_ERROR; 22<<EOF>> return T_EOF; 23 24%% |