all repos — min @ 236b5984e26d31253276e297dd2160a1b957c356

A small but practical concatenative programming language.

Merge branch 'next' of github.com:h3rald/min into next
h3rald h3rald@h3rald.com
Wed, 30 Dec 2020 12:11:01 +0100
commit

236b5984e26d31253276e297dd2160a1b957c356

parent

190fe7d067beab63a5504b08c9086711d717922e

1 files changed, 1 insertions(+), 17 deletions(-)

jump to
M core/interpreter.nimcore/interpreter.nim

@@ -332,24 +332,8 @@ proc rawCompile*(i: In, indent = ""): seq[string] {.discardable, extern:"min_exported_symbol_$1".} =

while i.parser.token != tkEof: if i.trace.len == 0: i.stackcopy = i.stack - try: + handleErrors(i) do: result.add i.parser.compileMinValue(i, push = true, indent) - except MinRuntimeError: - let msg = getCurrentExceptionMsg() - i.stack = i.stackcopy - error("$1:$2,$3 $4" % [i.currSym.filename, $i.currSym.line, $i.currSym.column, msg]) - i.stackTrace - i.trace = @[] - raise MinTrappedException(msg: msg) - except MinTrappedException: - raise - except: - let msg = getCurrentExceptionMsg() - i.stack = i.stackcopy - i.error(msg) - i.stackTrace - i.trace = @[] - raise MinTrappedException(msg: msg) proc compileFile*(i: In, main: bool): seq[string] {.discardable, extern:"min_exported_symbol_$1".} = result = newSeq[string](0)