all repos — min @ ea9832e807b4f36b0f074369208a956de3383c73

A small but practical concatenative programming language.

Added extra logging symbols.
h3rald h3rald@h3rald.com
Wed, 30 Dec 2020 15:33:50 +0000
commit

ea9832e807b4f36b0f074369208a956de3383c73

parent

e4e29fa4052a2d02450371e862688db6d4d6488d

1 files changed, 25 insertions(+), 0 deletions(-)

jump to
M lib/min_io.nimlib/min_io.nim

@@ -71,6 +71,31 @@ def.symbol("fatal") do (i: In):

let a = i.peek fatal $$a quit(100) + + def.symbol("notice!") do (i: In): + let a = i.pop + notice $$a + + def.symbol("info!") do (i: In): + let a = i.pop + info $$a + + def.symbol("error!") do (i: In): + let a = i.pop + error $$a + + def.symbol("warn!") do (i: In): + let a = i.pop + warn $$a + + def.symbol("debug!") do (i: In): + let a = i.pop + debug $$a + + def.symbol("fatal!") do (i: In): + let a = i.pop + fatal $$a + quit(100) def.symbol("column-print") do (i: In): let vals = i.expect("int", "quot")