From 3ce7811758c351df069ae36c55886af8b577cb66 Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 6 May 2020 06:03:32 +0100 Subject: +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. --- Converter/includes/compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Converter/includes/compiler.h') 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 + 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_ -- cgit v1.2.3-13-gbd6f