ITEC 460 - Chapter 2 Notes



Introduction



Basic Techniques



Brute Force



Buzz Words: Alphabet, Strings, Empty String, Language



Our Goal



Finite State Machine



Finite State Machine: Representation



Finite State Machine: Computation



Finite State Machine: Table Driven



Where does the Table Come From?



Regular Expressions (RE)



String Concatenation



Language Concatenation



Kleene Closure



Regular Expressions: Definition



RE Shorthand



RE Examples



JavaCC



Running JavaCC



Files Produced by JavaCC



Now Use TestJCC to Test the Lexer



Let's Experiment with simple.jj



Skipping Comments



Actions - Counting Comments



More Capabilities of Tokens



Special Tokens



Project