MCS-287 Notes for 2006-02-17

The attached version of TokenStream.java is essentially where we got to in our previous work on it in class, where it skips whitespace (but not comments) and recognizes LITERALs, but classifies all other characers as OTHER. The main procedure prints out all the tokens up to (but not including) the EOF. Now, using Java Generics and in particular the Collection classes, we can play around with modifications such as:


Course web site: http://www.gustavus.edu/+max/courses/S2006/MCS-287/
Instructor: Max Hailperin <max@gustavus.edu>