all repos — min @ 39c4bbcabd9ac22aa15874005f58260535a928a1

A small but practical concatenative programming language.

Added prefix symbol
h3rald h3rald@h3rald.com
Sat, 28 Nov 2020 21:47:09 +0000
commit

39c4bbcabd9ac22aa15874005f58260535a928a1

parent

78dad59e9e2240b552e2148bc9048d0d79fa8ad0

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

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

@@ -623,6 +623,12 @@ i.dequote(res)

res = newSeq[MinValue](0).newVal return i.pop i.push i.infix(q) + + def.symbol("prefix") do (i: In): + let vals = i.expect("quot") + var q = vals[0] + q.qVal.reverse + i.dequote(q) # Converters