start a basic REPL (ch4)

This commit is contained in:
Josh Holtrop 2015-12-09 15:08:14 -05:00
parent ea5606c7a6
commit f63f789c5d
2 changed files with 18 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/main

17
main.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
char input[2048];
int main(int argc, char * argv[])
{
puts("jlispy v0.0.1");
puts("Press Ctrl+C to exit\n");
while (1)
{
printf("jlispy> ");
fflush(stdout);
fgets(input, sizeof(input), stdin);
printf("no you're a %s\n", input);
}
}