aboutsummaryrefslogtreecommitdiff
path: root/compiler/compiler.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-02-14Add driverRyo Nihei2-0/+309
The driver takes a DFA and an input text and generates a lexer. The lexer tokenizes the input text according to the lexical specification that the DFA expresses.
2021-02-14Add compilerRyo Nihei9-0/+1268
The compiler takes a lexical specification expressed by regular expressions and generates a DFA accepting the tokens. Operators that you can use in the regular expressions are concatenation, alternation, repeat, and grouping.