all repos — min @ b9f5bce402461fc7df0e733f03048f4129a09d2f

A small but practical concatenative programming language.

Fixed compilation errors and most warnings.
h3rald h3rald@h3rald.com
Sun, 29 Sep 2019 14:14:22 +0200
commit

b9f5bce402461fc7df0e733f03048f4129a09d2f

parent

916447685ab549ace1e012723d97e746b5100d83

M core/consts.nimcore/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.nimcore/interpreter.nim

@@ -4,7 +4,6 @@ strutils,

critbits, os, algorithm, - times, logging import value,
M core/parser.nimcore/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.nimcore/utils.nim

@@ -1,9 +1,7 @@

import strutils, - sequtils, critbits, - json, - terminal + json import ../packages/nim-sgregex/sgregex, parser,
M core/value.nimcore/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_fs.nimlib/min_fs.nim

@@ -1,5 +1,4 @@

import - strutils, os, times import
M lib/min_io.nimlib/min_io.nim

@@ -1,5 +1,4 @@

import - os, strutils, logging import
M lib/min_lang.nimlib/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.nimlib/min_logic.nim

@@ -1,5 +1,4 @@

import - tables, math import ../core/parser,
M lib/min_math.nimlib/min_math.nim

@@ -1,5 +1,4 @@

import - tables, math import ../core/parser,
M lib/min_net.nimlib/min_net.nim

@@ -1,4 +1,4 @@

-import net, nativesockets, strutils +import net, nativesockets import ../core/parser, ../core/value,
M lib/min_num.nimlib/min_num.nim

@@ -1,5 +1,4 @@

import - tables, random import ../core/parser,
M lib/min_seq.nimlib/min_seq.nim

@@ -1,6 +1,5 @@

import tables, - sequtils, algorithm import ../core/parser,
M lib/min_stack.nimlib/min_stack.nim

@@ -1,6 +1,3 @@

-import - tables, - random import ../core/parser, ../core/value,
M lib/min_str.nimlib/min_str.nim

@@ -1,5 +1,4 @@

import - tables, strutils, sequtils import
M lib/min_sys.nimlib/min_sys.nim

@@ -1,5 +1,4 @@

import - tables, os, osproc, strutils,
M lib/min_time.nimlib/min_time.nim

@@ -1,6 +1,5 @@

import - times, - tables + times import ../core/parser, ../core/value,
M min.nimblemin.nimble

@@ -12,7 +12,7 @@ installFiles = @["core/consts.nim"]

# Dependencies -requires "nim >= 0.18.0" +requires "nim >= 1.0.0" requires "nifty" before install: