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