swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 1 | #include "lisp.h" |
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 2 | #include "compiler.h" |
swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 3 | |
4 | int main (int argc, char **argv) | ||||
5 | { | ||||
swissChili | bed8092 | 2021-04-13 21:58:05 -0700 | [diff] [blame] | 6 | if ( argc < 2 ) |
7 | { | ||||
8 | puts ("pass the string you want to parse as the first argument please"); | ||||
9 | return 1; | ||||
10 | } | ||||
11 | |||||
12 | struct istream *is = new_stristream_nt (argv[ 1 ]); | ||||
swissChili | 8cfb7c4 | 2021-04-18 21:17:58 -0700 | [diff] [blame] | 13 | value_t val; |
swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 14 | |
15 | while ( read1 (is, &val) ) | ||||
16 | { | ||||
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 17 | // printval (val, 0); |
18 | compile (val); | ||||
swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 19 | } |
20 | |||||
swissChili | f3e7f18 | 2021-04-20 13:57:22 -0700 | [diff] [blame] | 21 | /* printf ("COMPILING\n"); */ |
22 | |||||
23 | return 0; | ||||
24 | |||||
swissChili | 7a6f5eb | 2021-04-13 16:46:02 -0700 | [diff] [blame] | 25 | del_stristream (is); |
26 | } |