47 #ifndef VCSN_MISC_FLEX_LEXER_HH
48 # define VCSN_MISC_FLEX_LEXER_HH
50 struct yy_buffer_state;
63 virtual struct yy_buffer_state*
66 virtual void yyrestart( std::istream* s ) = 0;
71 std::ostream* new_out =
nullptr ) = 0;
95 yyFlexLexer( std::istream* arg_yyin =
nullptr, std::ostream* arg_yyout =
nullptr );
117 std::ostream* new_out =
nullptr );
123 virtual int LexerInput(
char* buf,
int max_size );
124 virtual void LexerOutput(
const char* buf,
int size );
127 void yyunput(
int c,
char* buf_ptr );
131 void yy_init_buffer(
struct yy_buffer_state* b, std::istream* s );
194 #endif // !VCSN_MISC_FLEX_LEXER_HH
struct yy_buffer_state * yy_create_buffer(std::istream *s, int size)
void yy_flush_buffer(struct yy_buffer_state *b)
void yy_push_state(int new_state)
virtual void switch_streams(std::istream *new_in, std::ostream *new_out=nullptr)
#define YY_FLEX_NAMESPACE_BEGIN
virtual int LexerInput(char *buf, int max_size)
void yyensure_buffer_stack(void)
int yy_looking_for_trail_begin
void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)
void yy_delete_buffer(struct yy_buffer_state *b)
struct yy_buffer_state ** yy_buffer_stack
Stack as an array.
variadic_mul_mixin< detail::b_impl > b
virtual void switch_streams(std::istream *new_in=nullptr, std::ostream *new_out=nullptr)=0
yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define YY_FLEX_NAMESPACE_END
virtual void LexerError(const char *msg)
void scan_open_(std::istream &f)
yy_state_type yy_get_previous_state()
yy_state_type yy_last_accepting_state
vcsn::rat::location location
virtual struct yy_buffer_state * yy_create_buffer(std::istream *s, int size)=0
virtual void yyrestart(std::istream *s)=0
void yypush_buffer_state(struct yy_buffer_state *new_buffer)
int yy_did_buffer_switch_on_eof
size_t yy_buffer_stack_top
index of top of stack.
yyFlexLexer(std::istream *arg_yyin=nullptr, std::ostream *arg_yyout=nullptr)
virtual void LexerOutput(const char *buf, int size)
void yy_load_buffer_state()
virtual void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)=0
void yy_init_buffer(struct yy_buffer_state *b, std::istream *s)
void * yyrealloc(void *, size_t)
size_t yy_buffer_stack_max
capacity of stack.
yy_state_type * yy_state_ptr
void yyunput(int c, char *buf_ptr)
void yyrestart(std::istream *s)
void yypop_buffer_state()
const char * YYText() const
virtual void yy_delete_buffer(struct yy_buffer_state *b)=0
char * yy_last_accepting_cpos
YY_FLEX_NAMESPACE_BEGIN void * yyalloc(size_t)
yy_state_type * yy_state_buf