in reply to Parser Generation and Regeneration

Isn't that sort of what the flex/lex/bison/yacc family of tools does? Why reinvent this particular wheel?

(I can think of one reason right off the top of my head, but it isn't a particularly good one: to use Perlish regexes instead of egrep-style regexes. Any others?)

--
:wq

Replies are listed 'Best First'.
Re: (FoxUni) Re: Parser Generation and Regeneration
by hsmyers (Canon) on Dec 08, 2001 at 00:58 UTC
    I don't think I was as clear as I could have been. Lex Luthor and the gang are all good general solutions. They do not provide optimal solutions. When you bust the regex down to atomic parts, you can create a 'hand-coded' parser. This is probably trying to have my cake and eat it too, but worth playing with none the less. Also, maintaining .y files over time is a real pain in the donkey…