Make small fixes to compiler series posts
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -103,7 +103,7 @@ generate a state machine, and convert it into code to simulate that state machin
|
||||
that code as part of our compiler. This way, we have a state machine "hardcoded" into our tokenizer,
|
||||
and no conversion of regex to DFAs needs to be done at runtime.
|
||||
|
||||
#### The Practice
|
||||
### The Practice
|
||||
Creating an NFA, and then a DFA, and then generating C++ code are all cumbersome. If we had to
|
||||
write code to do this every time we made a compiler, it would get very repetitive, very fast.
|
||||
Fortunately, there exists a tool that does exactly this for us - it's called `flex`. Flex
|
||||
|
||||
Reference in New Issue
Block a user