-
Notifications
You must be signed in to change notification settings - Fork 0
Hello DonutScript!
Witherbear edited this page Mar 10, 2023
·
1 revision
With all of you learned, you can create your first program!
To create your first program, you will write this:
require donutThis is a library, a bundle of files that creates utility functions.
Now, write the main function:
fun main():
endInside the main function, use the println function to print "Hello DonutScript!":
println("Hello DonutScript!")Compile the file to JAR and run in command line:
donut java Hello.donut
java -jar Hello.jar
And boom! In the command line will appear "Hello DonutScript!"
DonutScript Wiki | @flash_content
- Home
- DonutScript
- Begginer's Guide
- Concepts
- Functions
- Hello DonutScript!
- LearnDonut
- DonutScript Compiler