Anonymous user
Tokenize a string with escaping: Difference between revisions
Renamed "tokenzie" as "tokenize". Minor other changes.
(Ada version) |
(Renamed "tokenzie" as "tokenize". Minor other changes.) |
||
Line 2,187:
<lang nim>import streams
proc
var buff = ""
while not s.atEnd():
let c =
case c
of sep:
Line 2,198:
buff.add s.readChar
else:
buff
result.add buff
for i, s in
echo i, ":", s
</lang>
|