aboutsummaryrefslogtreecommitdiff
path: root/Converter/includes
AgeCommit message (Collapse)Author
2020-05-22~array_init now uses pointer to an array pointerdx
This means that the pointer that I allocate can actually be used.
2020-05-22~compile_lines -> compile_file, shuffledx
I've redid the compiler to use a FILE object pointer, which means that we can leave error checking for FILES on the main program. Furthermore, I've removed the use of the array_t type with a two pass system. One pass is done for the number of lines (along with potentially other diagnostics), another is done for the actual compilation. This means at runtime we have an understanding about the size of the file and can optimize for it. Also, we have a single memory block to assign to, where we know the size of the array.
2020-05-20+function to get the lines of some given filedx
Uses the dynamic array to alleviate the burdens of computing specific memory sizes. Terminates lines for parsing.
2020-05-20+dynamic array implementationdx
Very basic, and only for dynamic content
2020-05-20~test_compile* -> compile_line_header_depthdx
Prefix 'test_' is useless and bloat
2020-05-20-removed the refactor of compile_inner_textdx
Doesn't work very well
2020-05-20~!refactor of the compile_inner_text functiondx
Set compiled token recipes in the compiler.h file (easier to manage) and let code handle the rest.
2020-05-20+strikethrough tag to accepted tokensdx
2020-05-20+docs for each functiondx
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-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~test_header_depths -> test_compile_line_header_depthsdx
2020-05-06+testing systemdx
Very elementary, doesn't use some massive framework, should just use asserts and C-lang constructs. Currently one method is present in the header, test_header_depths.
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.