Age | Commit message (Collapse) | Author |
|
Using new file algorithm to generate html files from markdown file,
supports repl and testing as usual.
|
|
Prefix 'test_' is useless and bloat
|
|
|
|
When using fgets(), the returned string doesn't have a null terminator
but rather a newline (you use a RET to end input). So I made a little
script portion dedicate to finding the first newline and wholly removing it.
|
|
|
|
|
|
|
|
|
|
If argc is greater than 1 and the second argument is --test then run tests.
|
|
compiler.h holds definitions necessary for compiling markdown,
compiler.c the implementations.
Moved implementation of compile_line to compiler.h and compiler.c respectively.
|
|
To make clang format happy, I put continue on the for loop so that it
will have at least one statement.
|
|
Makes more sense as a variable name.
|
|
untag_size, tag_size, etc. These represent the proper sizes and are
easier to mutate.
|
|
This adds the functionality for arbitrary levels of header depth which
will be translated to depth based header tags.
\## -> <h2>
\### -> <h3>
etc
This also introduces a variable 'size_of_content' which presents the
size of the raw string without the header tags as added size.
|
|
|
|
compile_line is the main function which compiles a single line in C.
Similar to the stage of compilation in the python program.
Currently supports header tags
|
|
Looks nice in my editor and is nice to use when writing code. Will be
removed via some simple grepping later if I'm asked lol.
|
|
I'll try implementing my current system with it's current features into C
|