September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
|
|
@ -1,25 +1,24 @@
|
|||
#import system.
|
||||
#import extensions.
|
||||
import extensions.
|
||||
|
||||
#symbol program =
|
||||
program =
|
||||
[
|
||||
#var s := "abcd".
|
||||
var s := "abcd".
|
||||
|
||||
console writeLine:s:" starts with ab: ":(s startingWith:"ab" literal).
|
||||
console writeLine:s:" starts with cd: ":(s startingWith:"cd" literal).
|
||||
console printLine(s," starts with ab: ",s startingWith:"ab").
|
||||
console printLine(s," starts with cd: ",s startingWith:"cd").
|
||||
|
||||
console writeLine:s:" ends with ab: ":(s endingWith:"ab" literal).
|
||||
console writeLine:s:" ends with cd: ":(s endingWith:"cd" literal).
|
||||
console printLine(s," ends with ab: ",s endingWith:"ab").
|
||||
console printLine(s," ends with cd: ",s endingWith:"cd").
|
||||
|
||||
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 printLine(s," contains ab: ",s containing:"ab").
|
||||
console printLine(s," contains bc: ",s containing:"bc").
|
||||
console printLine(s," contains cd: ",s containing:"cd").
|
||||
console printLine(s," contains az: ",s containing:"az").
|
||||
|
||||
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 printLine(s," index of az: ",s indexOf:"az" at:0).
|
||||
console printLine(s," index of cd: ",s indexOf:"cd" at:0).
|
||||
console printLine(s," index of bc: ",s indexOf:"bc" at:0).
|
||||
console printLine(s," index of ab: ",s indexOf:"ab" at:0).
|
||||
|
||||
console readChar.
|
||||
].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue