Start supporting numbers and strings

This commit is contained in:
2023-02-25 16:45:54 +00:00
parent cbae1c4629
commit 636101f1fa
15 changed files with 379 additions and 37 deletions

View File

@@ -1,8 +1,23 @@
package main
import "fmt"
import (
"os"
)
// args without the program path
var Args = os.Args[1:]
func main() {
translate("")
fmt.Println("hello world")
ex, e := os.Getwd()
if e != nil {
panic(e)
}
if len(Args) == 0 {
panic("No file specified")
}
err := importMod(Args[0], ex, true)
if err != "" {
panic(err)
}
}