all repos — min @ da5244f4297b0d41b633a55a3109d180dc39e07e

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

da5244f4297b0d41b633a55a3109d180dc39e07e

parent

464ed0071111ead5e51fe40eaa952aca30385d4f

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}}. #}