parser->includeHistory.append( IncludeHistoryItem(
includeChecks[found], inclSectionName ) );
- Scanner scanner( includeChecks[found], *inFile, parser,
+ Scanner scanner( id, includeChecks[found], *inFile, parser,
inclSectionName, includeDepth+1, false );
scanner.do_scan( );
delete inFile;
scan_error() << "import: attempted: \"" << *tried++ << '\"' << endl;
}
- Scanner scanner( importChecks[found], *inFile, parser,
+ Scanner scanner( id, importChecks[found], *inFile, parser,
0, includeDepth+1, true );
scanner.do_scan( );
scanner.importToken( 0, 0, 0 );
void Scanner::processToken( int type, char *tokdata, int toklen )
{
int *p, *pe, *eof;
-
if ( type < 0 )
p = pe = eof = 0;
# Parser definitions.
parser_def := |*
+ 'length_cond' => { token( KW_Length ); };
'machine' => { token( KW_Machine ); };
'include' => { token( KW_Include ); };
'import' => { token( KW_Import ); };