[clean-list] questions
Jenda Krynicky
Jenda@Krynicky.cz
Thu, 20 Nov 2003 12:23:53 +0100
From: Attila Ondi <aondi@fit.edu>
> ~ 2) How can I handle Strings easily? There are not too much functions
> that operate on Strings in StdEnv. What I was trying to acieve is to
> parse a String according to some format. More specifically I had
> datatypes ::Icon = I Int Int ::Region = R Int Int Int Int ::Click = M
> Int Int
>
> The input string to process had a "I x y" "R x1 y1 x2 y2" or "M x y"
> in each line, where the 'x's and 'y's are actual integer numbers. At
> the end of the parsing I wanted to have three lists with types [Icon],
> [Region], and [Click] respectively.
There's nothing better than regexps for string handling, I'm really
surprised there is no regular expression library for Clean.
Jenda
BTW, I get a JavaScript error
Line: 672
Error: 'F_doLoaded' is undefined
if I go to http://www.cs.kun.nl/~clean/.
===== Jenda@Krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery