diff --git a/C_C++/flex/scan_string.l b/C_C++/flex/scan_string.l new file mode 100644 index 0000000..2c2013c --- /dev/null +++ b/C_C++/flex/scan_string.l @@ -0,0 +1,15 @@ +/* @BAKE + flex -o scan_string.yy.c $@ + gcc -o scan_string.out scan_string.yy.c + ./scan_string.out + @STOP + */ +%option noyywrap +%% +%% +signed main() { + const char * input = "This is my input"; + YY_BUFFER_STATE const b = yy_scan_string(input); + yylex(); + yy_delete_buffer(b); +}