Merge branch 'next' of github.com:h3rald/min into next
h3rald h3rald@h3rald.com
Wed, 30 Dec 2020 12:11:01 +0100
1 files changed,
1 insertions(+),
17 deletions(-)
jump to
M
core/interpreter.nim
→
core/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)