-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Texts (data type)
Christoph Heine edited this page Mar 29, 2018
·
3 revisions
The String type, called text
, is one of the primitive data types supported by nyan.
string : text = "Hello, World!"
Characters of the text type are surrounded by quatation marks (""
). Texts can contain non-ASCII characters.
Unit():
name : text
Spearman(Unit):
name = "Spearman"
The text name
has the value Spearman
.
Unit():
name : text = "Unit"
Archer(Unit):
name = "Archer"
Overwrites the old value with a new one.
Spearman():
name = "Spearman"
Emphasize<Spearman>():
name += "!"
Appends the given text to the end of another text.