Regular Expressions
The way we indicate in JFlex how we want to input to be tokenized is with regular expressions. Here's the regular expressions for tokenizing the input as shown on the previous slide:
[^/\r\n]+ "Consume input as long as it does not
contain a slash, carriage return, or new line"
"/" "Consume just the slash"
\r|\n|\r\n "Consume the line terminator"