Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rux Examples

Example projects and programming tutorials for the Rux language.

List of Projects

  • Hello — print "Hello, World!", the minimal Rux application
  • Greeting — iterate over a string array and print greetings in multiple languages
  • Primitive — declare and print all primitive types: integers, floats, booleans, and characters
  • Factorial — calculate and print factorial values with a loop
  • Array — use a dynamic array with manual memory management (Alloc, Zero, Free)
  • File — write text to a file with WinAPI (Windows only)
  • Circle — read input from stdin, parse a string to a number, and match on the result
  • Version — select code at compile time with when and the compiler version

Running an Example

Each example is a standalone Rux package with its own Rux.toml, and requires Rux 0.4.0 or newer.

cd Hello
rux run

If necessary, install the dependencies first:

cd Hello
rux install
rux run

To build and type-check an example without running it:

cd Hello
rux check

License

Licensed under the MIT License.

About

Examples written in the Rux programming language

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Contributors