[gambit-list] format & regex

Marc Feeley feeley at iro.umontreal.ca
Thu Feb 5 08:13:46 EST 2009


On 5-Feb-09, at 1:55 AM, Alex Shinn wrote:

> lowly coder <lowlycoder at huoyanjinjing.com> writes:
>
>> 1) sed/awk/grep/perl
>>  if possible, i'd like to use gambit for these type of apps instead  
>> (being
>> slower is fine; i just want everything in scheme for now) -- is  
>> there a good
>> way to do regex matching in gambit?
>
> http://synthcode.com/scheme/irregex/

I concur.  Irregex is my favourite portable regular expression library.

>
>
>> 2) fprintf/format
>>  pp and display are cool -- but sometimes, I really really want  
>> control over
>> my output; how is this generally done in gambit? things like "print  
>> this
>> number with 8 chars width, 3 digits after the decimal point" seems  
>> kind of
>> hard to phrase
>
> http://synthcode.com/scheme/fmt/

Thanks for the suggestion.  I did not know it existed and it looks  
really nice.

Marc




More information about the Gambit-list mailing list