Skip to content

Latest commit

 

History

History

README.md

Ryo Examples

Working Examples (Milestone 8b)

These compile and run with the current compiler.

File Features
hello.ryo print()
multiline.ryo Multiple statements
calculator.ryo Arithmetic, operator precedence
square.ryo Function definition, return types
fizzbuzz.ryo if/elif/else, modulo
classify.ryo Conditionals, logical operators, and/not
booleans.ryo bool type, equality operators
floats_and_ordering.ryo float type, comparison, integer division

Running

cargo run -- run examples/hello.ryo        # JIT
cargo run -- build examples/hello.ryo      # AOT → ./hello

Future Examples

future/ contains aspirational examples showing planned features that do not compile yet. They serve as design references for upcoming milestones.

Includes: error handling, ownership/borrowing, structs, enums, pattern matching, collections, modules, concurrency (tasks, channels, select), closures, and more.

Resources