47 #ifndef __FLEX_LEXER_H
49 #define __FLEX_LEXER_H
53 # define FLEX_STD std::
58 struct yy_buffer_state;
74 virtual struct yy_buffer_state*
79 virtual int yylex() = 0;
111 #endif // FLEXLEXER_H
113 #if defined(yyFlexLexer) || ! defined(yyFlexLexerOnce)
117 #define yyFlexLexerOnce
142 virtual int LexerInput(
char* buf,
int max_size );
143 virtual void LexerOutput(
const char* buf,
int size );
146 void yyunput(
int c,
char* buf_ptr );
214 #endif // yyFlexLexer || ! yyFlexLexerOnce
virtual void switch_streams(FLEX_STD istream *new_in, FLEX_STD ostream *new_out=0)
Switch to new input/output streams.
void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)
virtual void switch_streams(FLEX_STD istream *new_in=0, FLEX_STD ostream *new_out=0)=0
Switch to new input/output streams.
void yypush_buffer_state(struct yy_buffer_state *new_buffer)
yy_state_type * yy_state_ptr
void yy_push_state(int new_state)
yy_state_type yy_try_NUL_trans(yy_state_type current_state)
size_t yy_buffer_stack_top
index of top of stack.
virtual void yy_switch_to_buffer(struct yy_buffer_state *new_buffer)=0
yy_state_type * yy_state_buf
void yy_flush_buffer(struct yy_buffer_state *b)
const char * YYText() const
char yy_hold_char
yy_hold_char holds the character lost when yytext is formed.
yy_state_type yy_last_accepting_state
The following are not always needed, but may be depending on use of certain flex features (like REJEC...
struct yy_buffer_state * yy_create_buffer(FLEX_STD istream *s, int size)
void yyunput(int c, char *buf_ptr)
void yypop_buffer_state()
virtual void LexerError(const char *msg)
char * yy_last_accepting_cpos
void yy_load_buffer_state()
yyFlexLexer(FLEX_STD istream *arg_yyin=0, FLEX_STD ostream *arg_yyout=0)
arg_yyin and arg_yyout default to the cin and cout, but we only make that assignment when initializin...
int yy_looking_for_trail_begin
virtual struct yy_buffer_state * yy_create_buffer(FLEX_STD istream *s, int size)=0
size_t yy_buffer_stack_max
capacity of stack.
int yy_did_buffer_switch_on_eof
Flag which is used to allow yywrap()'s to do buffer switches instead of setting up a fresh yyin...
struct yy_buffer_state ** yy_buffer_stack
casacore::Stack as an array.
char * yy_c_buf_p
Points to current character in buffer.
void yyensure_buffer_stack(void)
virtual void yyrestart(FLEX_STD istream *s)=0
int yylex(FLEX_STD istream *new_in, FLEX_STD ostream *new_out=0)
Call yylex with new input/output sources.
virtual void LexerOutput(const char *buf, int size)
virtual int LexerInput(char *buf, int max_size)
void yyrestart(FLEX_STD istream *s)
void yy_delete_buffer(struct yy_buffer_state *b)
int yy_n_chars
Number of characters read into yy_ch_buf.
const Double c
Fundamental physical constants (SI units):
virtual void yy_delete_buffer(struct yy_buffer_state *b)=0
void yy_init_buffer(struct yy_buffer_state *b, FLEX_STD istream *s)
yy_state_type yy_get_previous_state()