High-level Structure of a scanner

High-level Structure of a scanner

repeat {

t= getNextToken();

if (t.error) {

print error message;

exit from compiler or recover from the error;}

output_token(t);}

until(t.EOF)

Previous slide Next slide Back to the first slide View Graphic Version