/tof

a functional programming language in rust (in development)

Primary LanguageRustMIT LicenseMIT

tof is a pure functional language made in rust (🚧 in development)

install

  • fork the repo
  • git clone https://github.com/[your_username]/tof.git
  • run cargo install
  • run cargo run -- run example

a basic example

// this is a sum example
sum : _ -> {
  num1 : int (scan "num1 = " )
  num2 : int (scan "num2 = ")
  print "result = " (num1 + num2)
}

sum _

cli options

run cargo install to install tof so you can call tof using tof name

  • tof run filename
  • tof play
  • tof run filename --show-tokens