1
0
Programming language with a focus on ease of use, performance and correctness.
Go to file
2024-05-23 18:06:04 -04:00
dust-lang Continue implementing comments 2024-05-23 18:06:04 -04:00
dust-shell Update CLI 2024-05-21 16:52:29 -04:00
examples Begin implementing as expression 2024-05-21 17:07:12 -04:00
std Fix parsing errors 2024-05-20 15:22:50 -04:00
.gitignore Do not ignore generated tree sitter files 2023-11-28 13:53:33 -05:00
Cargo.lock Add example; Clean up pratt parser 2024-04-27 03:40:05 -04:00
Cargo.toml Clean up 2024-03-22 17:22:39 -04:00
README.md Clean up example 2024-05-18 11:59:39 -04:00

Dust

High-level programming language with effortless concurrency, automatic memory management, type safety and advanced error handling.

io.write_line("Guess the number.")

secret_number = random.range(0..100)

loop {
  	io.write_line("Input your guess.")

  	input = io.read_line()
  	guess = int.parse(input)

  	if guess < secret_number {
  	  	io.write_line("Too low!")
	  } else if guess > secret_number {
	    	io.write_line("Too high!")
	  } else {
	    	io.write_line("You win!")
	    	break
	  }
}