Closed juniper-wright closed 11 years ago
Syntax for function:
print Text to be printed. "quotes" can appear escaped by another quote.\nLine breaks are facilitated via\nAll other characters are valid."
Everything on the line after "print " (that's a space character) will be printed.
Via the Rhino javascript engine, this can be accomplished via:
print("The text to be printed!");
inside of the JavaScript string.
This issue needs to be reopened, thanks to the decision to add a function to UtopiaScript:
print string to be printed! No characters are banned except semicolon.;
println Semicolons (\;) need to be escaped. nbd.;
This is to facilitate simple games using ONLY UtopiaScript, without the need for JavaScript at all.
This is a feature request for the UtopiaScript parser. References #1.