next up previous
Next: Using a Scanner Generator Up: No Title Previous: The Longest Match Rule

Example


\begin{program}
~~~~~~~~3~$*$~(5~+~3)~/$*$~small~comment~$*$/~--~7\end{program}
The Scanner should give:

numlit(3), times, lparen, numlit(5), plus, 
numlit(3), rparen, minus, numlit(7), eof



Christoph Zenger
3/23/2000