24 lines
318 B
Go
24 lines
318 B
Go
package main
|
|
|
|
import (
|
|
"bbash/command"
|
|
"bbash/environment"
|
|
"bbash/input_parser"
|
|
"fmt"
|
|
)
|
|
|
|
|
|
func main() {
|
|
env := environment.Get_env()
|
|
command.Init(&env)
|
|
|
|
for {
|
|
in_parsed := input_parser.Parse(&env)
|
|
if in_parsed.Instruction == "exit" {
|
|
break
|
|
}
|
|
command.Run_command(in_parsed, &env)
|
|
fmt.Println()
|
|
}
|
|
}
|