int main() { Scanner * scanner = new Scanner("d://main.b"); scanner->GetNextToken(); delete scanner; return 0; }
Token Parser::NextToken() { if (!tokenAvailable) { savedToken = scan.GetNextToken(); tokenAvailable = true; } return savedToken; }
void FAO::Advance() { cur_token_ = scanner_.GetNextToken(); }