This struct was just a container for two pointers and just made things
painful. This structure has been removed and the next pointer has been
moved to the Token struct.
Also, add a null check to the calling context after NewLexer().
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.
Removed the NodeList struct as it only had a "first" field and didn't
really serve any purpose outside of that. ParseNodes() now just returns
a pointer to the first Node.
- 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).
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
The GCC version installed on Unix does not support `-Wpedantic`, so this
has been replaced with `-pedantic`. The version installed on Unix is
4.0.0.
`.PHONY` has been removed as this has no special meaning on Unix.
Instead, make thought it was a target which made it build, run, then
immediately delete the executable. This is obviously not desired.
Unix make also doesn't support the `$^` automatic variable. This has
been replaced with the object list variable instead.