Slide 8
Slide 8 text
Regular Expressions in
JavaCC
• < ID: ["a"-"z","A"-"Z","_"]
( ["a"-"z","A"-"Z","_","0"-"9"] )* >
• ( ... )+
• ( ... )?
• ( r1 | r2 | ... )
• ["a"-"z"]
• ~[] (any character)
• ~["\n","\r"] (any character exception the new line
characters)
Aggelos Biboudis 8