Add mindicate interpreter

This commit is contained in:
Emery Hemingway 2024-04-24 16:15:41 +02:00
parent e946b3a64e
commit 8aadf1829f
2 changed files with 24 additions and 0 deletions

20
pkg/mindicate.nim Normal file
View File

@ -0,0 +1,20 @@
# SPDX-FileCopyrightText: ☭ Emery Hemingway
# SPDX-License-Identifier: Unlicense
import
std/[streams, os],
min,
./min_preserves,
./min_syndicate
proc main =
var params = commandLineParams()
if params.len != 1:
quit "expected a path to a script as a single argument"
var path = params[0]
var i = newMinInterpreter(path, parentDir path)
i.preserves_module()
i.syndicate_module()
i.interpret(newFileStream(path, fmRead))
main()

4
pkg/mindicate.nim.cfg Normal file
View File

@ -0,0 +1,4 @@
define:nix
define:nossl
mm:refc
threadAnalysis:off