Commit Graph

4 Commits

Author SHA1 Message Date
Zorchenhimer 9c172c5216 Combine repeated whitespace tokens
Whitespace tokens now contain all equal contiguous whitespace
characters.  The token list will no longer contain, eg, three
TT_WHITESPACE tokens for three spaces and will instead have one
TT_WHITESPACE token that has a length of three.
2023-10-20 20:22:11 -04:00
Zorchenhimer d855df380b Add codeblocks; Fix some stuff
- Parse code blocks that are wrapped sets of three backticks.
- Added a TT_TRIPLEBACKTICK token.
- Added a length field to the Token struct.
- Added an error node.
- Cleaned up some file read code.
- Fixed the header raw text (don't reuse the same buffer for each node).
2023-10-15 20:55:12 -04:00
Zorchenhimer ca6bdca7ab Fix basic parse issues
Fixed parsing the tokens so it actually worked.  Only headers are
currently implemented, but header nodes are now properly parsed and
everything else is properly ignored.

- Get the input filename from the command line
- Added in a bunch of checks to avoid segfaults
- Added some more debug info in places
2023-10-15 18:30:59 -04:00
Zorchenhimer 5e1d6ae207 Initial commit 2021-07-14 11:15:46 -04:00