I want to create a read-eval-print loop using flex/bison parser. Trouble is, the flex generated lexer wants input of type FILE* and i would like it to be char*. Is there an
There's this funny code in libmatheval:
/* Redefine macro to redirect scanner input from string instead of * standard input. */ #define YY_INPUT( buffer, result, max_size ) \ { result = input_from_string (buffer, max_size); }