First page Back Continue Last page Summary Graphic
Why Simple Ideas Don't Scale
Simple idea: separate syntax analysis into scanning and parsing
Real language compilers have to deal with a mess of details
C: typedef int counter changes the lexical class of counter - it becomes a type name
Haskell: layout conventions involve inserting an implicit } token when a grammar rule ends
These involve ugly interactions between scanner and parser