diff options
author | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:08:50 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-06 06:08:50 +0100 |
commit | 1282cfa24512831c2da16ea551023e75667cc644 (patch) | |
tree | 19f371fa923454bedc75ff39b7fd51b831d4d863 | |
parent | 9d3bbeba91d6d821cd4ea69a7addf95274da3a2b (diff) | |
download | mdhtml-1282cfa24512831c2da16ea551023e75667cc644.tar.gz mdhtml-1282cfa24512831c2da16ea551023e75667cc644.tar.bz2 mdhtml-1282cfa24512831c2da16ea551023e75667cc644.zip |
+repl to main
-rw-r--r-- | Converter/src/main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Converter/src/main.c b/Converter/src/main.c index 58dd1b4..b60e80e 100644 --- a/Converter/src/main.c +++ b/Converter/src/main.c @@ -19,4 +19,15 @@ int main(int argc, char *argv[]) puts(compile_line(argv[1], strnlen(argv[1], 1024), "<stdin>")); } } + + else + { + while (1) + { + printf("> "); + char *buf = malloc(sizeof(*buf) * 1024); + fgets(buf, 1024, stdin); + puts(compile_line(buf, 1024, "<stdin>")); + } + } } |