PPT Slide
* Parse slash-delimited book data.
[^/\r\n]+ { System.out.print(yytext()); }
"/" { System.out.print("/"); }
\r|\n|\r\n { System.out.println(); }
These rules indicate that the lexer
should scan until it gets to a slash
or line terminator, then print the token.
When it gets a slash it should print the
slash. When it gets a line terminator
it should print a carriage return. When
it gets to the end of file it should quit.