aboutsummaryrefslogtreecommitdiff
path: root/Converter/src/compiler.c
AgeCommit message (Collapse)Author
2020-05-07+token checker functiondx
This will check if a given character is a valid plain text token (*, _). This will allow me to abstract away and assess if some plain text needs to be further processed
2020-05-07+find_string algorithmdx
This algorithm looks for substrings in a big string, attempting to find the index of the first occurence.
2020-05-07~correcting my intuition about c-stringsdx
On converting, I would sometimes get the other tag missing. This was both on the repl and the tests, and was quite annoying. Each c-string should end in a null terminator, which I forgot about. So this commit fixes that by setting the last character pointer on each branch to the null terminator.
2020-05-07~rearrange the formatted string callsdx
2020-05-07~puting branching comments on the line they referencedx
2020-05-06+list handler for parserdx
This checks if the first item is a hyphen, then generates a <li> tag surrounding the content
2020-05-06+!fixed bug, caused close tag to not occur in headerdx
This was because it wrote to the null character and thus was inaccessible (I think).
2020-05-06~compile_plain_text -> compile_inner_textdx
2020-05-06+whitespace considerationsdx
2020-05-06+routine to compile plain text +diagnosticsdx
This routine will handle asterisks and bullet points. Works by checking characters at each step. Also has diagnostics by checking for matching characters. If a matching asterisk, for example, isn't found then present an error and quit.
2020-05-06+introduced compiler.h and compiler.cdx
compiler.h holds definitions necessary for compiling markdown, compiler.c the implementations. Moved implementation of compile_line to compiler.h and compiler.c respectively.