roc/examples/platform-switching
2024-12-17 14:17:21 +01:00
..
c-platform switch dbg arg ordering to make it backwards compatible 2023-12-02 21:18:32 -08:00
rust-platform fix typo 2024-11-04 16:08:45 +11:00
web-assembly-platform fix zig hosts ensure they export main 2024-08-04 21:12:09 +10:00
zig-platform Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig 2024-11-13 09:02:20 +11:00
README.md fix nightly testing + updates 2024-12-17 14:17:21 +01:00
rocLovesC.roc fix nightly testing + updates 2024-12-17 14:17:21 +01:00
rocLovesRust.roc New app header syntax 2024-05-01 10:49:01 -03:00
rocLovesWebAssembly.roc New app header syntax 2024-05-01 10:49:01 -03:00
rocLovesZig.roc fix nightly testing + updates 2024-12-17 14:17:21 +01:00

Platform switching

To run, cd into this directory and run this in your terminal:

roc --build-host --suppress-build-host-warning rocLovesC.roc

About these examples

They use a very simple platform which does nothing more than printing the string you give it.

If you want to start building your own platforms, these are some very simple example platforms to use as starting points.