Added 'C_C++/flex/scan_string.l'
This commit is contained in:
parent
745d43f178
commit
5e3fe98f26
15
C_C++/flex/scan_string.l
Normal file
15
C_C++/flex/scan_string.l
Normal file
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user