diff options
Diffstat (limited to 'grammar/rscript.l')
-rw-r--r-- | grammar/rscript.l | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/grammar/rscript.l b/grammar/rscript.l new file mode 100644 index 00000000..eb2c23ad --- /dev/null +++ b/grammar/rscript.l @@ -0,0 +1,23 @@ +%{ +#include <libestr.h> +%} + +%% + + +. { printf("%s", yytext); } + +%% +int +main(int argc, char *argv[]) +{ + es_str_t *str; + YY_BUFFER_STATE bp; + char ln[10240]; + + readConfFile(stdin, &str); + //printf("buffer: %s\n", es_getBufAddr(str)); + bp = yy_scan_buffer(es_getBufAddr(str), es_strlen(str)); + //yy_switch_to_buffer(bp); + yylex(); +} |