Add simple example repl. Will eventually add
support for error handling, macros and other
compile time transformations. This will eventually become the full
language.
"Create a parser"
(export! "p" (parser))
+"Run a simple repl. Does not handle errors and other
+such details."
(while 1
+ (write stdout ">> ")
(: line (readline))
- (print "Read line: " line)
-)
+ (while line
+ (: line (parse-charseq p line))
+ (if (parse-hasvalue p)
+ (print ((compile (parse-consume p)))))))
