mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
20 lines
319 B
Plaintext
20 lines
319 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";
|
|
|
|
//print from a leaf string
|
|
print "Hello world"[0,5];
|
|
|
|
print ("hello" .. "world")[2,6];
|