First Program
Matchbox source files use the .mb extension. Create a file named main.mb and add the following code:
var x = 10
var y = 20
var result = x + y
print(result)
This program stores two integers, adds them, and passes the result to print.
Compile and run the program:
matchbox main.mb
The program writes the following value to standard output:
30
You can now change either value and run the command again to see the updated result. Continue to Language Basics for the next step.