12345678910111213141516171819202122232425262728 |
- #include <stdio.h>
- #include "./grammar.c"
- #define BUFSIZE 4096
- static char buf[BUFSIZE];
- int main(int argc, char** argv) {
-
- printf("strlst lisp 0.1\n");
-
- printf("<C-c> to interrupt\n");
-
- while (1) {
-
- fputs("strlisp> ", stdout);
-
- fgets(buf, BUFSIZE, stdin);
- printf("screw you for saying %s", buf);
- }
- return 0;
- }
|