diff options
Diffstat (limited to 'main/main.go')
-rw-r--r-- | main/main.go | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/main/main.go b/main/main.go index d657ea2..3da414d 100644 --- a/main/main.go +++ b/main/main.go @@ -3,7 +3,6 @@ package main import ( "os" "bufio" - "fmt" "main/subex" "main/walk" ) @@ -18,18 +17,7 @@ type ProgramState struct { } func main() { - if len(os.Args) != 3 { - panic("Expected: stred [input] [subex]") - } - input := os.Args[1] - program := os.Args[2] - ast := subex.Parse(program) - transducer := subex.CompileTransducer(ast) - output, err := subex.RunTransducer(transducer, input) - if err { - output = input - } - fmt.Println(output) + subex.Main() } func mainISH() { |