Single Pass – based around parsing of phrases
void parseStatement() {
case Token.IDENTIFIER:
acceptIt();
switch( currentToken.kind )
case Token.BECOMES
acceptIt();
parseExpression();
break;
x := x + 1;
Previous slide
Next slide
Back to first slide
View graphic version