Handling Qualified Method InvocationsTopOutlineStructure of Semantic Processing Code

Structure of Semantic Processing Code

  1. The code you write to traverse the syntax tree should not be composed of a single procedure containing one big case statement. Instead, have distinct processing routines (with little case statements) for each major class of nodes (i.e. statements, expressions, ...).

Computer Science 434
Department of Computer Science
Williams College

Handling Qualified Method InvocationsTopOutlineStructure of Semantic Processing Code