roc/examples
Ayaz ea24e295e3
Merge pull request #4252 from roc-lang/dependabot/cargo/examples/gui/breakout/platform/crossbeam-utils-0.8.12
Bump crossbeam-utils from 0.8.6 to 0.8.12 in /examples/gui/breakout/platform
2022-10-08 09:48:10 -05:00
..
cli Merge branch 'main' of github.com:roc-lang/roc into simplify_examples 2022-10-07 16:00:32 +02:00
gui Merge pull request #4252 from roc-lang/dependabot/cargo/examples/gui/breakout/platform/crossbeam-utils-0.8.12 2022-10-08 09:48:10 -05:00
parser Simplify Parser example 2022-10-05 17:28:01 -05:00
ruby-interop Add language to all fenced code blocks 2022-09-09 01:12:31 -06:00
static-site-gen Fix type mismatch in exit code 2022-09-19 21:12:48 -04:00
swiftui Add SwiftUI demo 2022-08-28 13:34:42 +02:00
.gitignore Move helloWorld example up onto cli-platform 2022-09-11 22:22:50 -06:00
helloWorld.roc cli_run no macro re-write 2022-09-27 20:25:28 +02:00
README.md Move Roc CLI testing examples to crates/ 2022-09-11 22:32:15 -06:00

Examples

Run examples as follows:

  1. Navigate to this examples folder

    cd examples
    
  2. Run a particular example, such as Hello World:

    roc run hello-world/main.roc
    

crates/cli_testing_examples/benchmarks/ contains some larger examples.

Some examples like crates/cli_testing_examples/benchmarks/NQueens.roc require input after running. For NQueens, input 10 in the terminal and press enter.