1 #ifndef CMDLEXCL_HEADER
2 #define CMDLEXCL_HEADER
4 //#ifndef __FLEX_LEXER_H
5 //#include <FlexLexer.h>
7 #include "flex_lexer.h"
12 class cl_ucsim_lexer: public yyFlexLexer
15 char *string_to_parse;
18 cl_ucsim_lexer(void): yyFlexLexer()
20 string_to_parse= string_ptr= 0;
22 cl_ucsim_lexer(char *str): yyFlexLexer()
24 string_to_parse= string_ptr= strdup(str);
26 virtual ~cl_ucsim_lexer(void)
30 free(string_to_parse);
34 void activate_lexer_to_parse_into(void *yylv);
36 int LexerInput(char *buf, int max_size);
38 int check_id(char *token);