Forth Convert `not` from native to built-in.
[jackhill/mal.git] / forth / step0_repl.fs
CommitLineData
59038a10 1require types.fs
ccc7d9d1
C
2
3: read ;
4: eval ;
5: print ;
6
7: rep
8 read
9 eval
10 print ;
11
12create buff 128 allot
13
14: read-lines
15 begin
16 ." user> "
17 buff 128 stdin read-line throw
9e2a4ab0
JMC
18 while ( num-bytes-read )
19 dup 0 <> if
20 buff swap
21 rep type cr
22 endif
ccc7d9d1
C
23 repeat ;
24
9e2a4ab0 25read-lines