Changeset 4611094f in mainline for uspace/dist/src/sysel/demos/string.sy
- Timestamp:
- 2011-03-20T19:09:19Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cfbcd86
- Parents:
- 8c76c30 (diff), 7308e84 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/sysel/demos/string.sy
r8c76c30 r4611094f 30 30 fun Main(), static is 31 31 -- Concatenate some strings. 32 Builtin.WriteLine("One-" + "two-" + "three!");32 Console.WriteLine("One-" + "two-" + "three!"); 33 33 34 34 -- Extract characters from a string. … … 36 36 i = 0; 37 37 while i < 5 do 38 Builtin.WriteLine("ABCDE"[i]);38 Console.WriteLine("ABCDE"[i]); 39 39 i = i + 1; 40 40 end 41 41 42 Builtin.WriteLine("Abracadabra".Slice(2, 4));42 Console.WriteLine("Abracadabra".Slice(2, 4)); 43 43 end 44 44 end
Note:
See TracChangeset
for help on using the changeset viewer.