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
size_t yy_buffer_stack_top
index of top of stack.
virtual void LexerOutput(const char *buf, int size)
YY_FLEX_NAMESPACE_BEGIN void * yyalloc(size_t)
virtual yy_buffer_state * yy_create_buffer(std::istream *s, int size)=0
#define YY_FLEX_NAMESPACE_END
void * yyrealloc(void *, size_t)
yy_buffer_state ** yy_buffer_stack
Stack as an array.
virtual void switch_streams(std::istream *new_in, std::ostream *new_out=nullptr)
char * yy_last_accepting_cpos
int yy_looking_for_trail_begin
yy_state_type yy_try_NUL_trans(yy_state_type current_state)
void yy_delete_buffer(yy_buffer_state *b)
yy_state_type * yy_state_buf
void yypush_buffer_state(yy_buffer_state *new_buffer)
yyFlexLexer(std::istream &arg_yyin, std::ostream &arg_yyout)
int yy_did_buffer_switch_on_eof
yy_state_type yy_last_accepting_state
void yy_load_buffer_state()
weightset_mixin< detail::b_impl > b
void yy_push_state(int new_state)
const char * YYText() const
void yyensure_buffer_stack(void)
void yy_init_buffer(yy_buffer_state *b, std::istream *s)
virtual int LexerInput(char *buf, int max_size)
void yypop_buffer_state()
yy_state_type * yy_state_ptr
yy_buffer_state * yy_create_buffer(std::istream *s, int size)
size_t size(const ExpSet &rs, const typename ExpSet::value_t &r)
virtual void yy_switch_to_buffer(yy_buffer_state *new_buffer)=0
yy_state_type yy_get_previous_state()
virtual void yy_delete_buffer(yy_buffer_state *b)=0
void yyrestart(std::istream *s)
size_t yy_buffer_stack_max
capacity of stack.
virtual void LexerError(const char *msg)
void scan_open_(std::istream &f)
#define YY_FLEX_NAMESPACE_BEGIN
virtual void yyrestart(std::istream *s)=0
void yy_flush_buffer(yy_buffer_state *b)
void yyunput(int c, char *buf_ptr)
void yy_switch_to_buffer(yy_buffer_state *new_buffer)
virtual void switch_streams(std::istream *new_in=nullptr, std::ostream *new_out=nullptr)=0
vcsn::rat::location location