summaryrefslogtreecommitdiff
path: root/src/tint.go
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-07-05 22:23:07 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-07-05 22:23:07 -0400
commit60fb718233fc9cac7741f0f9cc41c1b8b2dd2918 (patch)
tree29a3f6cd7d7522e2321c182a35cfb342483f0127 /src/tint.go
parent289c1fe3dd2f29e2511b6bb376582f8791179a9b (diff)
[TINT] Add ability to quiet down the interpreter
Diffstat (limited to 'src/tint.go')
-rw-r--r--src/tint.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tint.go b/src/tint.go
index b17d8b0..b2566b5 100644
--- a/src/tint.go
+++ b/src/tint.go
@@ -23,9 +23,11 @@ import "flag"
func main() {
inputFile := flag.String("in", "", "The file to execute")
progFlags := flag.String("flags", "", "Flags for the executing program")
+ quietFlag := flag.Bool("quiet", false, "Quiet the interpreter when importing files")
flag.Parse()
+ texec.Quiet = *quietFlag
root := texec.BuildRoot(*inputFile)
fmt.Printf("Program end. Returned %v.\n", texec.EvalTNSL(&root, *progFlags))