all repos — min @ e00e19ff90ef0631e1d0f0b0230efa69999f8def

A small but practical concatenative programming language.

Added loglevel? symbol (ref: #53).
h3rald h3rald@h3rald.com
Sun, 02 Feb 2020 13:38:31 +0100
commit

e00e19ff90ef0631e1d0f0b0230efa69999f8def

parent

9061ad4ab2f63a1a9df5ef73b2f4554e8c24ba60

2 files changed, 4 insertions(+), 1 deletions(-)

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

@@ -90,7 +90,7 @@ var str = s.getString

echo "Log level: ", setLogLevel(str) def.symbol("loglevel?") do (i: In): - echo "Log level: ", getLogLevel() + i.push getLogLevel().newVal # Language constructs
M site/contents/reference-lang.mdsite/contents/reference-lang.md

@@ -201,6 +201,9 @@ > > Note

> > > > The default logging level is _notice_.#} +{#op||loglevel?||{{null}}||{{s}}|| +Returns the current log level (debug, info, notive, warn, error or fatal). #} + {#op||module||{{d}} {{sl}}||{{null}}|| Creates a new module {{sl}} based on dictionary {{d}}. #}