47 #ifndef VCSN_MISC_FLEX_LEXER_HH
48 # define VCSN_MISC_FLEX_LEXER_HH
53 # include <vcsn/config.hh>
56 # define FLEX_STD std::
59 struct yy_buffer_state;
73 virtual void yyrestart( std::istream* s ) = 0;
75 #if 2 <= VCSN_FLEX_MAJOR_VERSION && 6 <= VCSN_FLEX_MINOR_VERSION
77 virtual void switch_streams(std::istream& new_in, std::ostream& new_out ) = 0;
78 virtual void yyrestart( std::istream& s ) = 0;
84 std::ostream* new_out =
nullptr ) = 0;
108 yyFlexLexer( std::istream& arg_yyin, std::ostream& arg_yyout );
109 yyFlexLexer( std::istream* arg_yyin =
nullptr, std::ostream* arg_yyout =
nullptr );
136 std::ostream* new_out =
nullptr );
139 #if 2 <= VCSN_FLEX_MAJOR_VERSION && 6 <= VCSN_FLEX_MINOR_VERSION
142 virtual void switch_streams(std::istream& new_in, std::ostream& new_out );
143 virtual void yyrestart( std::istream& s );
146 void putback(
char c) { yyin.putback(c); }
153 virtual int LexerInput(
char* buf,
int max_size );
154 virtual void LexerOutput(
const char* buf,
int size );
157 void yyunput(
int c,
char* buf_ptr );
176 #if 2 <= VCSN_FLEX_MAJOR_VERSION && 6 <= VCSN_FLEX_MINOR_VERSION
228 #endif // !VCSN_MISC_FLEX_LEXER_HH
int yy_did_buffer_switch_on_eof
yy_state_type yy_last_accepting_state
void yy_load_buffer_state()
void yyrestart(std::istream *s)
void yy_push_state(int new_state)
vcsn::rat::location location
size_t yy_buffer_stack_max
capacity of stack.
void yyunput(int c, char *buf_ptr)
void yy_switch_to_buffer(yy_buffer_state *new_buffer)
void yypop_buffer_state()
yy_buffer_state * yy_create_buffer(std::istream *s, int size)
virtual void LexerError(const char *msg)
size_t size(const ExpSet &rs, const typename ExpSet::value_t &r)
virtual void yy_switch_to_buffer(yy_buffer_state *new_buffer)=0
virtual yy_buffer_state * yy_create_buffer(std::istream *s, int size)=0
yy_buffer_state ** yy_buffer_stack
Stack as an array.
const char * YYText() const
virtual void switch_streams(std::istream *new_in, std::ostream *new_out=nullptr)
void yy_flush_buffer(yy_buffer_state *b)
char * yy_last_accepting_cpos
void yy_delete_buffer(yy_buffer_state *b)
virtual void LexerOutput(const char *buf, int size)
void yypush_buffer_state(yy_buffer_state *new_buffer)
void scan_open_(std::istream &f)
size_t yy_buffer_stack_top
index of top of stack.
yy_state_type yy_try_NUL_trans(yy_state_type current_state)
yy_state_type * yy_state_buf
int yy_looking_for_trail_begin
void yyensure_buffer_stack(void)
yyFlexLexer(std::istream &arg_yyin, std::ostream &arg_yyout)
yy_state_type * yy_state_ptr
virtual void yyrestart(std::istream *s)=0
yy_state_type yy_get_previous_state()
virtual void yy_delete_buffer(yy_buffer_state *b)=0
#define YY_FLEX_NAMESPACE_BEGIN
weightset_mixin< detail::b_impl > b
void yy_init_buffer(yy_buffer_state *b, std::istream *s)
virtual void switch_streams(std::istream *new_in=nullptr, std::ostream *new_out=nullptr)=0
YY_FLEX_NAMESPACE_BEGIN void * yyalloc(size_t)
void * yyrealloc(void *, size_t)
virtual int LexerInput(char *buf, int max_size)
#define YY_FLEX_NAMESPACE_END