mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 02:20:51 +01:00
25 lines
463 B
Plaintext
25 lines
463 B
Plaintext
%{
|
|
|
|
#include <string.h>
|
|
#include "dma.h"
|
|
#include "aliases_parse.h"
|
|
|
|
#define YY_NO_INPUT
|
|
|
|
%}
|
|
|
|
%option yylineno
|
|
%option nounput
|
|
|
|
%%
|
|
|
|
[^:,#[:space:][:cntrl:]]+ {yylval.ident = strdup(yytext); return T_IDENT;}
|
|
^([[:blank:]]*(#.*)?\n)+ ;/* ignore empty lines */
|
|
[:,\n] return yytext[0];
|
|
(\n?[[:blank:]]+|#.*)+ ;/* ignore whitespace and continuation */
|
|
\\\n ;/* ignore continuation. not allowed in comments */
|
|
. return T_ERROR;
|
|
<<EOF>> return T_EOF;
|
|
|
|
%%
|