[Jprogramming] J script files

Oleg Kobchenko olegykj at yahoo.com
Mon Apr 16 15:11:03 HKT 2007


--- Raul Miller <rauldmiller at gmail.com> wrote:

> On 4/16/07, Oleg Kobchenko <olegykj at yahoo.com> wrote:
> > Scanning usually means lexical analysis, or lexing.
> >
> > Although ". or 0&". can serve as scanners, together with ;: ,
> > they won't be useful for something like a date format:
> >
> >   ;:'2001-01-01 00:00:00'
> 
> Actually, dyadic ;: works rather nicely for
> lexical analysis.

Can you define an (ad)verb that will accept a one-line
pattern for ;: ? Because what can beat this?

  '(....)-(..)-(..) (..):(..):(..)' <rxscan input

Dyadic ;: requires to write a whole new lexer for each
pattern: character classes, transition table, different actions, etc. 
There are just too many patterns to write a lexer for each of them.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the Programming mailing list