diff options
Diffstat (limited to 'Converter/src')
-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>")); + } + } } |