Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738import ioimport processimport runimport strings
main() { 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) }}