Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -1,22 +1,25 @@
|
|||
#define system'routines.
|
||||
#define extensions.
|
||||
|
||||
// --- Program ---
|
||||
#import system.
|
||||
#import extensions.
|
||||
|
||||
#symbol program =
|
||||
[
|
||||
literalControl starting:"hello" &with:"hel" ?
|
||||
[
|
||||
consoleEx writeLine:"hello starts with hel".
|
||||
].
|
||||
#var s := "abcd".
|
||||
|
||||
literalControl ending:"hello" &with:"llo" ?
|
||||
[
|
||||
consoleEx writeLine:"hello ends with llo".
|
||||
].
|
||||
console writeLine:s:" starts with ab: ":(s startingWith:"ab" literal).
|
||||
console writeLine:s:" starts with cd: ":(s startingWith:"cd" literal).
|
||||
|
||||
literalControl contain:"el" &in:"hello" ?
|
||||
[
|
||||
consoleEx writeLine:"hello contains el".
|
||||
].
|
||||
console writeLine:s:" ends with ab: ":(s endingWith:"ab" literal).
|
||||
console writeLine:s:" ends with cd: ":(s endingWith:"cd" literal).
|
||||
|
||||
console writeLine:s:" contains ab: ":(s containing:"ab" literal).
|
||||
console writeLine:s:" contains bc: ":(s containing:"bc" literal).
|
||||
console writeLine:s:" contains cd: ":(s containing:"cd" literal).
|
||||
console writeLine:s:" contains az: ":(s containing:"az" literal).
|
||||
|
||||
console writeLine:s:" index of az: ":(s indexOf:"az" &at:0 literal).
|
||||
console writeLine:s:" index of cd: ":(s indexOf:"cd" &at:0 literal).
|
||||
console writeLine:s:" index of bc: ":(s indexOf:"bc" &at:0 literal).
|
||||
console writeLine:s:" index of ab: ":(s indexOf:"ab" &at:0 literal).
|
||||
|
||||
console readChar.
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue