In this directory you can find some examples of a code written in Jet.
Most of the examples can be compiled and run with:
jetc [file-name] -o [file-name] && .\[file-name].exe
e.g.:
jetc hello-world.jet -o hello-world && .\hello-world.exe
Examples that are put in separate folders with jetpack.toml
file
require building with the Jetpack tool. Run the following command
in the example's directory:
jetp build-run .
Name | Brief description |
---|---|
Hello World | A sample "hello world" program |
Fibonacci sequence | Prints a Fibonacci sequence up to a user-input number |
Guess a number | The program generates a random number and asks the user to guess it |