Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [AWK GREP] AWK and GREP funcs, arg order

From: jjmmes::yahoo::es at: 19-May-2007 9:01

Hi Gregg,=0A=0AAre you using a suffix tree or a suffix array for your implementation ?=0A=0Athanks=0Ajose=0A=0A----- Mensaje original ----=0ADe: Gregg Irwin <>=0APara: Ged Byrne <>=0AEnviado: viernes, 18 de mayo, 2007 17:47:16=0AAsunto: [REBOL] Re: [AWK GREP] AWK and GREP funcs, arg order=0A=0A=0AGed:=0AGB> I think the logic is that the program/pattern is mostly likely to be=0AGB> reused against different files.=0A=0AAnton:=0AAR> I say you're applying the program to the files, because without=0AAR> any files, there's no program.=0A=0ATom:=0AT> it is all data. why not let rawk figure out which is which=0A=0A=0AI agree with all of you. :) I like the idea of auto-identification,=0Abut there may be ambiguity. The risk may be low enough that it's worth=0Ait though.=0A=0AIn order to do that, it needs to be a dialect, rather than a func with=0Aargs for each one. I thought about that originally, but didn't come up=0Awith one I liked, so I fell back on making it a simple func for the=0Atime being (I was more concerned with the internals at that point).=0A=0AWhat should the dialect look like? We have three categories of values:=0A=0A* sources -- files to analyze, but I also support blocks and strings.=0A=0A* program -- probably only one, with the pattern/action pairs as=0A sub-items.=0A=0A* options -- e.g. /deep=0A=0AFor command line use, the programs and file specs will probably be=0Avery simple, but you can write more complete programs and store them=0Ain files. How flexible should it be with regard to applying multiple=0Asource specs to multiple programs? For example, if you have=0Aoverlapping functionality, do you need to run multiple programs, or=0Areload a file list from a global spec for each "pass"?=0A=0A-- Gregg=0A=0A-- =0ATo unsubscribe from the list, just send an email to =0Alists at with unsubscribe as the subject.=0A=0A=0A=0A=0A=0A=0A =0A____________________________________________________________________________________=0A=A1Descubre una nueva forma de obtener respuestas a tus preguntas!=0AEntra en Yahoo! Respuestas.=0A