voltaic-cli 0.2.0

The Voltaic compiler: .vlt in, .vrs containing ordinary Rust out.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import std::process::ExitCode

module build_command
module fmt_command
module run
module sig_command
module watch_command

main : ExitCode
main =
  args : Vec<String> = ((std::env::args ()).skip 1).collect ()
  case run::run (&args) of
    Ok () -> ExitCode::SUCCESS
    Err message ->
      eprintln! \-> "#{message}"
      ExitCode::FAILURE