mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
19 lines
360 B
Plaintext
19 lines
360 B
Plaintext
//basic print statement
|
|
print 42;
|
|
|
|
//print complex expressions
|
|
print 3 * 5;
|
|
|
|
//print a string
|
|
print "Hello world!";
|
|
|
|
//print a concatenated string
|
|
print "Hello" .. "world!";
|
|
|
|
//print with escaped characters
|
|
print "\tHello\nworld";
|
|
|
|
//TODO: in the repl, -s to supress output, or -d to print debugging info
|
|
|
|
//TODO: the `assert` keyword will be useful for these
|