Building a lexical analyzer from scratch in C
Building a lexical analyzer from scratch in C
Link: https://devlogs.xyz/blog/building-a-lexical-analyzer-from-scratch
Context
This actually cleared up how to write lexers from scratch. I was wondering if that was bunch of if-else to parse each tokens, but we do have to group the kind of tokens and then write specific conditions on how to parse them. Now that makes a lot of sense. Worth exploring more by writing my own markdown parser, even adding more features and syntax. If your soul screams to write your own flavour of markdown, let the muse take over you. This month or one day, not this weekend though.
Source: techstructive-weekly-60