Chapter 5 Checkpoint
In this chapter, we built a Markdown compiler! We opened a file, read it into memory, parsed it one line at a time, then wrote results to a file. Great job!
Try creating some Markdown files and passing them to the compiler. While you’re doing that, ask yourself:
- Is it working as expected?
- What happens when you use a Markdown tag that isn’t supported yet?
- How could you implement support for a new tag?
The only thing left to do now that our compiler has been constructed is to build a release version—which we are going to do in the next and final chapter of this book.
🚀 Fifth Checkpoint Reached! 🚀
"Perseverance is not a long race; it is many short races one after another."
Before continuing, you should be able to confidently:
- Open a file without errors
- Read a file line-by-line without errors
- Describe how a Markdown compiler works
- Write to a file without errors
All our code up to this point is available here on GitHub.
You may also wish to go back and review the fifth chapter.