September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
1
Task/Literals-String/Factor/literals-string-1.factor
Normal file
1
Task/Literals-String/Factor/literals-string-1.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
CHAR: a
|
||||
7
Task/Literals-String/Factor/literals-string-10.factor
Normal file
7
Task/Literals-String/Factor/literals-string-10.factor
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
USE: multiline
|
||||
STRING: random-stuff
|
||||
ABC
|
||||
123
|
||||
"x y z
|
||||
;
|
||||
random-stuff print
|
||||
15
Task/Literals-String/Factor/literals-string-11.factor
Normal file
15
Task/Literals-String/Factor/literals-string-11.factor
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
USING: interpolate locals namespaces ;
|
||||
|
||||
"Sally" "name" set
|
||||
"bicycle"
|
||||
"home"
|
||||
|
||||
[let
|
||||
|
||||
"crying" :> a
|
||||
|
||||
[I ${name} crashed her ${1}. Her ${1} broke.
|
||||
${name} ran ${} ${a}.
|
||||
I]
|
||||
|
||||
]
|
||||
5
Task/Literals-String/Factor/literals-string-2.factor
Normal file
5
Task/Literals-String/Factor/literals-string-2.factor
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
CHAR: x ! 120
|
||||
CHAR: \u000032 ! 50
|
||||
CHAR: \u{exclamation-mark} ! 33
|
||||
CHAR: exclamation-mark ! 33
|
||||
CHAR: ugaritic-letter-samka ! 66450
|
||||
1
Task/Literals-String/Factor/literals-string-3.factor
Normal file
1
Task/Literals-String/Factor/literals-string-3.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Hello, world!"
|
||||
1
Task/Literals-String/Factor/literals-string-4.factor
Normal file
1
Task/Literals-String/Factor/literals-string-4.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Hello, world!" { } like ! { 72 101 108 108 111 44 32 119 111 114 108 100 33 }
|
||||
1
Task/Literals-String/Factor/literals-string-5.factor
Normal file
1
Task/Literals-String/Factor/literals-string-5.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
"Line one\nLine two" print
|
||||
1
Task/Literals-String/Factor/literals-string-6.factor
Normal file
1
Task/Literals-String/Factor/literals-string-6.factor
Normal file
|
|
@ -0,0 +1 @@
|
|||
"\"Hello,\" she said." print
|
||||
3
Task/Literals-String/Factor/literals-string-7.factor
Normal file
3
Task/Literals-String/Factor/literals-string-7.factor
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
"2\u{superscript-two} = 4
|
||||
2\u{superscript-three} = 8
|
||||
2\u{superscript-four} = 16" print
|
||||
4
Task/Literals-String/Factor/literals-string-8.factor
Normal file
4
Task/Literals-String/Factor/literals-string-8.factor
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
USE: multiline
|
||||
[[ escape codes \t are literal \\ in here
|
||||
but newlines \u{plus-minus-sign} are still
|
||||
inserted " for each line the string \" spans.]] print
|
||||
8
Task/Literals-String/Factor/literals-string-9.factor
Normal file
8
Task/Literals-String/Factor/literals-string-9.factor
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
USE: multiline
|
||||
HEREDOC: END
|
||||
Everything between the line above
|
||||
and the final line (a user-defined token)
|
||||
is parsed into a string where whitespace
|
||||
is significant.
|
||||
END
|
||||
print
|
||||
Loading…
Add table
Add a link
Reference in a new issue