blob: 1bda5f1174db62a978258f1691e4556a1068871e [file] [log] [blame]
swissChili7a6f5eb2021-04-13 16:46:02 -07001#include "lisp.h"
swissChilif3e7f182021-04-20 13:57:22 -07002#include "compiler.h"
swissChili7a6f5eb2021-04-13 16:46:02 -07003
4int main (int argc, char **argv)
5{
swissChilibed80922021-04-13 21:58:05 -07006 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 ]);
swissChili8cfb7c42021-04-18 21:17:58 -070013 value_t val;
swissChili7a6f5eb2021-04-13 16:46:02 -070014
15 while ( read1 (is, &val) )
16 {
swissChilif3e7f182021-04-20 13:57:22 -070017// printval (val, 0);
18 compile (val);
swissChili7a6f5eb2021-04-13 16:46:02 -070019 }
20
swissChilif3e7f182021-04-20 13:57:22 -070021 /* printf ("COMPILING\n"); */
22
23 return 0;
24
swissChili7a6f5eb2021-04-13 16:46:02 -070025 del_stristream (is);
26}