From cd1571adfd8a734f352501d18a3731db920578cb Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 15 Dec 2021 15:25:33 -0500 Subject: [EXEC] renamed exec.go to tint.go --- README.md | 4 +++- src/exec.go | 32 -------------------------------- src/tint.go | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 33 deletions(-) delete mode 100644 src/exec.go create mode 100644 src/tint.go diff --git a/README.md b/README.md index 05bee9e..92c676d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To build the parser: To build the interpreter: - ./gobuild.sh exec + ./gobuild.sh tint Binaries will be dumped in the "build" folder. @@ -41,3 +41,5 @@ Once you have built the parser, it can be invoked in the build folder with `./pa ### Other notes With some of the code I've written, I'm kinda supprised that this even compiles. + +tint is short for Tnsl INTerpreter \ No newline at end of file diff --git a/src/exec.go b/src/exec.go deleted file mode 100644 index 6213e92..0000000 --- a/src/exec.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - Copyright 2020 Kyle Gunger - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. -*/ - -package main - -import "fmt" -import "texec" -import "flag" - -func main() { - inputFile := flag.String("in", "", "The file to execute") - progFlags := flag.String("flags", "", "Flags for the executing program") - - flag.Parse() - - root := texec.BuildRoot(*inputFile) - - //texec.EvalTNSL(&root, *progFlags) -} \ No newline at end of file diff --git a/src/tint.go b/src/tint.go new file mode 100644 index 0000000..6213e92 --- /dev/null +++ b/src/tint.go @@ -0,0 +1,32 @@ +/* + Copyright 2020 Kyle Gunger + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + +package main + +import "fmt" +import "texec" +import "flag" + +func main() { + inputFile := flag.String("in", "", "The file to execute") + progFlags := flag.String("flags", "", "Flags for the executing program") + + flag.Parse() + + root := texec.BuildRoot(*inputFile) + + //texec.EvalTNSL(&root, *progFlags) +} \ No newline at end of file -- cgit v1.2.3