Add mindicate interpreter
This commit is contained in:
parent
e946b3a64e
commit
8aadf1829f
|
@ -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()
|
|
@ -0,0 +1,4 @@
|
||||||
|
define:nix
|
||||||
|
define:nossl
|
||||||
|
mm:refc
|
||||||
|
threadAnalysis:off
|
Loading…
Reference in New Issue