Fixed compilation errors and most warnings.
h3rald h3rald@h3rald.com
Sun, 29 Sep 2019 14:14:22 +0200
18 files changed,
9 insertions(+),
32 deletions(-)
M
core/consts.nim
→
core/consts.nim
@@ -1,6 +1,6 @@
const pkgName* = "min" - pkgVersion* = "0.19.4" + pkgVersion* = "0.19.5" pkgAuthor* = "Fabio Cevasco" pkgDescription* = "A tiny concatenative programming language and shell."
M
core/interpreter.nim
→
core/interpreter.nim
@@ -4,7 +4,6 @@ strutils,
critbits, os, algorithm, - times, logging import value,
M
core/parser.nim
→
core/parser.nim
@@ -1,13 +1,9 @@
# Adapted from: https://github.com/Araq/Nimrod/blob/v0.9.6/lib/pure/json.nim import lexbase, - sequtils, strutils, streams, - tables, - critbits, - math, - logging + critbits import unicode except strip@@ -67,7 +63,7 @@ kind*: MinEventKind
err*: MinParserError filename*: string MinValue* = ref MinValueObject - MinValueObject* = object {.acyclic, final.} + MinValueObject* {.acyclic, final.} = object line*: int column*: int filename*: string@@ -86,7 +82,7 @@ of minBool: boolVal*: bool
MinScopeKind* = enum minNativeScope, minLangScope - MinScope* = object {.acyclic, shallow, final.} + MinScope* {.acyclic, shallow, final.} = object parent*: ref MinScope symbols*: CritBitTree[MinOperator] sigils*: CritBitTree[MinOperator]
M
core/utils.nim
→
core/utils.nim
@@ -1,9 +1,7 @@
import strutils, - sequtils, critbits, - json, - terminal + json import ../packages/nim-sgregex/sgregex, parser,
M
core/value.nim
→
core/value.nim
@@ -1,8 +1,5 @@
import - critbits -import - parser, - scope + parser proc typeName*(v: MinValue): string {.extern:"min_exported_symbol_$1".}= case v.kind:
M
lib/min_lang.nim
→
lib/min_lang.nim
@@ -16,7 +16,6 @@ ../core/interpreter,
../core/utils, ../packages/nim-sgregex/sgregex, ../packages/niftylogger, - ../packages/nimline/nimline, ../core/scope proc lang_module*(i: In) =
M
lib/min_logic.nim
→
lib/min_logic.nim
@@ -1,5 +1,4 @@
import - tables, math import ../core/parser,
M
lib/min_net.nim
→
lib/min_net.nim
@@ -1,4 +1,4 @@
-import net, nativesockets, strutils +import net, nativesockets import ../core/parser, ../core/value,
M
lib/min_seq.nim
→
lib/min_seq.nim
@@ -1,6 +1,5 @@
import tables, - sequtils, algorithm import ../core/parser,
M
lib/min_stack.nim
→
lib/min_stack.nim
@@ -1,6 +1,3 @@
-import - tables, - random import ../core/parser, ../core/value,
M
lib/min_time.nim
→
lib/min_time.nim
@@ -1,6 +1,5 @@
import - times, - tables + times import ../core/parser, ../core/value,
M
min.nimble
→
min.nimble
@@ -12,7 +12,7 @@ installFiles = @["core/consts.nim"]
# Dependencies -requires "nim >= 0.18.0" +requires "nim >= 1.0.0" requires "nifty" before install: