Goals for this project:
- Parse a simplified version of Markdown that is good enough for writing my blog posts.
- Be reasonably efficient. This means the parser shouldn't copy substrings around if not necessary. This is done by storing all the elements as indexes into the original text.
- Be small and therefore be easy to understand.
- No regular expressions. They are the lazy person's solution to parsing. ;-)
This is just a toy project for me to experiment with writing parsers in Swift. Because why not?