Kompilasi Regular Expression Thompson NFA -> Subset Construction DFA

Mendukung: literal, | (union / "atau"), * (nol atau lebih), + (satu atau lebih), ? (opsional), grup (), character class [a-z0-9], shorthand \d (digit), \w (huruf/angka/underscore), \s (spasi). Contoh pola untuk token NUMBER pada tokenizer Modul 1: [0-9]+(\.[0-9]+)?

ab* [0-9]+(\.[0-9]+)? · token NUMBER (a|b)*abb \d\d?:\d\d