Hi Gregg,=0A=0AAre you using a suffix tree or a suffix array for your imple=
mentation ?=0A=0Athanks=0Ajose=0A=0A----- Mensaje original ----=0ADe: Gregg=
Irwin <[EMAIL PROTECTED]>=0APara: Ged Byrne <[EMAIL PROTECTED]>=0AE=
nviado: 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, be=
cause 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 ambig=
uity. 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 e=
ach one. I thought about that originally, but didn't come up=0Awith one I l=
iked, 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 dia=
lect look like? We have three categories of values:=0A=0A* sources -- files=
to analyze, but I also support blocks and strings.=0A=0A* program -- proba=
bly 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 prog=
rams and store them=0Ain files. How flexible should it be with regard to ap=
plying multiple=0Asource specs to multiple programs? For example, if you ha=
ve=0Aoverlapping functionality, do you need to run multiple programs, or=0A=
reload 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 rebol.=
com with unsubscribe as the subject.=0A=0A=0A=0A=0A=0A=0A =0A________=
___________________________________________________________________________=
_=0A=A1Descubre una nueva forma de obtener respuestas a tus preguntas!=0AEn=
tra en Yahoo! Respuestas.=0Ahttp://es.answers.yahoo.com/info/welcome
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.