Compiler From Scratch: Phase 1 - Tokenizer Generator 002: Parsing project/tokenizer definition files

7 months ago
7

Streamed on 2024-07-26 (https://www.twitch.tv/thediscouragerofhesitancy)

Zero Dependencies Programming!

To start with we need to import user configuration. To get things started we hack together some file parsing with sscanf, just as a bootstrapping method. The parsing methods we made are not robust or good or safe or recommended at all.

Once things progress to a certain point, we will be able to output our own tokenizer code and will start replacing the bootstrapped code with our own generated code. That is a few sessions in the future though.

And somewhere along the way I lost power for a second. I had to wait for the power to come back on, the internet to reconnect and restart my OBS. So sorry for the bad video splicing.

Loading comments...