-struct ImportScanner
-{
- ImportScanner( char *fileName, istream &input, ostream &output, Parser *parser )
- :
- fileName(fileName), input(input), output(output),
- parser(parser),
- cur_token(0),
- line(1), column(1)
- {}
-
- void token( int type, char *start, char *end );
- void updateCol();
- void startSection();
- void endSection();
- void do_scan();
- ostream &scan_error();
-
- char *fileName;
- istream &input;
- ostream &output;
- Parser *parser;
-
- /* For scanning the tokens. */
- int tok_cs, tok_act;
- int *tok_tokstart, *tok_tokend;
- int cur_token;
- static const int max_tokens = 8;
- int token_data[max_tokens];
-
- /* For scanning the characters. */
- int line;
- char *chr_tokstart, *chr_tokend;
- int column;
-};
-
-