Re: grep and sed in guile

2013-08-27 Thread Stefan Israelsson Tampe
Nice! Also scsh for guile can be used to get grep and sed functionality. The interesting thing is to try to design sed/grep like functionality that knows about scheme or C or whatever format in some clever way. Usually sad and grep is good enough, but it is an interesting task never the less. My p

Re: grep and sed in guile

2013-08-27 Thread Ludovic Courtès
> 3) (sed m expr) > > This will print out on std output all lines not matched by m, if m is > matched then that expr will make sure to print the correct way > > An example matcher is > m := (s-tr a b) > > which will replace a by b FWIW Guix has a sed-like macro, called ‘substitute*’ [0]. E

grep and sed in guile

2013-08-25 Thread Stefan Israelsson Tampe
Hi all, This small discussion refers to the current head of the guile-log branch. When the parser framework is rich enough I will issue a new release of it. As you know I'm currently working with guile-log to attach decent parser tools in for anyone wanting to do parsing in a logic programming e