diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:03:32 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:04:44 +0100 |
commit | 3ce7811758c351df069ae36c55886af8b577cb66 (patch) | |
tree | 52f0528e5f4fe9e5e6fcd7d9852ca88318dd1411 /Converter/includes | |
parent | 0b5450d05c98701e02412b9cc712595d01518263 (diff) | |
download | mdhtml-3ce7811758c351df069ae36c55886af8b577cb66.tar.gz mdhtml-3ce7811758c351df069ae36c55886af8b577cb66.tar.bz2 mdhtml-3ce7811758c351df069ae36c55886af8b577cb66.zip |
+routine to compile plain text +diagnostics
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.
Diffstat (limited to 'Converter/includes')
-rw-r--r-- | Converter/includes/compiler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Converter/includes/compiler.h b/Converter/includes/compiler.h index b0b6d43..8b2fa1f 100644 --- a/Converter/includes/compiler.h +++ b/Converter/includes/compiler.h @@ -2,7 +2,8 @@ #define __COMPILER_H_ #include <stdlib.h> + typedef char *string; -string compile_line(string line, size_t size_of_line); +string compile_line(string line, size_t size_of_line, string line_or_source); #endif // __COMPILER_H_ |