mirror of
https://github.com/Fluffy-Bean/GoLox.git
synced 2025-07-16 14:45:54 +00:00
Find keywords
Use runes/chars for characters
This commit is contained in:
parent
175d300e03
commit
a63c07d5bf
4 changed files with 98 additions and 57 deletions
12
scripts/function.lox
Normal file
12
scripts/function.lox
Normal file
|
@ -0,0 +1,12 @@
|
|||
fun main() {
|
||||
example("world")
|
||||
}
|
||||
|
||||
fun example(name) {
|
||||
print "Hello, "
|
||||
print name
|
||||
print "!\n"
|
||||
}
|
||||
|
||||
// Start program
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue