Back
Close

Introduction to Reason Compilation

[CG]Nick
2,726 views
Next: Step 2

1 - Compile and Run a Single Reason File

OCaml's compiler has a nice, flexible pre-processing step described in run.sh. A Reason file is just an ordinary OCaml file that leverages that feature. Therefore, everything that semantically works in OCaml should, in theory, work in Reason, and vice-versa.

We start with a shell file, run.sh, which, upon execution, compiles & runs the output.

"Run"
print_endline "hi";
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants