From 9d3bbeba91d6d821cd4ea69a7addf95274da3a2b Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 6 May 2020 06:06:11 +0100 Subject: +condition to make main parse one command at will --- Converter/src/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Converter/src/main.c b/Converter/src/main.c index 4e65cb0..58dd1b4 100644 --- a/Converter/src/main.c +++ b/Converter/src/main.c @@ -14,5 +14,9 @@ int main(int argc, char *argv[]) fputs("Running header test (how does compile_string handle # headers?)\n", stderr); test_compile_line_header_depth(); } + else + { + puts(compile_line(argv[1], strnlen(argv[1], 1024), "")); + } } } -- cgit v1.2.3-13-gbd6f