all repos — min @ df73f1743bcb8f37ce030fa66d69eba8a0d9368c

A small but practical concatenative programming language.

Moved debug info only to symbols where possible.
h3rald h3rald@h3rald.com
Wed, 03 Jun 2026 10:17:28 +0200
commit

df73f1743bcb8f37ce030fa66d69eba8a0d9368c

parent

32f1b14b5779934c8bc94d4aac54d03dc1754421

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

jump to
M minpkg/core/parser.nimminpkg/core/parser.nim

@@ -78,11 +78,7 @@ err*: MinParserError

filename*: string MinValue* = MinValueObject MinValueObject* {.acyclic, final.} = object - line*: int - column*: int filename*: string - outerSym*: string - docComment*: string case kind*: MinKind of minUnknown: discard of minNull: discard

@@ -96,7 +92,12 @@ objType*: string

of minQuotation: qVal*: seq[MinValue] of minString: strVal*: string - of minSymbol: symVal*: string + of minSymbol: + symVal*: string + line*: int + column*: int + outerSym*: string + docComment*: string of minBool: boolVal*: bool MinScopeKind* = enum minNativeScope,

@@ -801,8 +802,6 @@ result = MinValue(kind: minUnknown)

else: let err = "Undefined or invalid value (" & $p.token & "): " & p.a raiseUndefined(p, err) - if not result.isUnknown: - result.filename = p.filename proc compileMinValue*(p: var MinParser, i: In, push = true, indent = ""): seq[string] = var op = indent