A New String Syntax. Rock-String

By Xah Lee. Date: . Last updated: .

new idea on string syntax

in this syntax

most basic string syntax

"some"

and this

s"some"s

prefixed with a letter, or up to 20 random letters of a to z or 0 to 9. e.g.

jqvjt"some"jqvjt

when 2 strings are separated by whitespace, they are joined. e.g.

"aa" "bb" is same as "aabb"

to include a QUOTATION MARK, e.g.

ss"he said: "something""ss

embed expression is for example

x = 4 "i have" x "cats"

a character can be represented by

char(n)

the argument is the unicode char id in decimal. e.g.

so the typical JavaScript "a\nb" is

"a" char(10) "b"

C lang printf problem