Something went wrong. Try again.
馃尡 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738import ioimport processimport runimport stringsmain() { buffer := new(byte, 256) loop { io.write("位 ") n, _ := io.read(buffer) if n == 0 { return } input := buffer[..n] path := strings.trim(input) execute(path) }}execute(path string) { if path == "" { return } if path == "exit" { run.exit(0) } err := process.run(path) if err != 0 { io.write("error executing: ") io.writeLine(path) }}