|Why separate Lexical & Parser Generators heronj@smtplink.NGC.COM (John Heron) (1994-10-05)|
|Re: Why separate the lexer and parser? firstname.lastname@example.org (1994-10-10)|
|lex, yacc, and the programmer's guild email@example.com (Nathan K. Inada) (1994-10-10)|
|From:||"Nathan K. Inada" <firstname.lastname@example.org>|
|Keywords:||lex, yacc, design|
|Organization:||Software Technologies Corporation|
|Date:||Mon, 10 Oct 1994 12:29:41 GMT|
Henry G Baker <email@example.com> writes:
> The problem with tools like lex/yacc is that they beg to be
> used, and _are_ used, 100X more often than they ought to be.
> Do we really need 10,000 different formats for the various
> parameter files in computer systems?
i have heard this before and agree whole heartedly with the overabundance
of formats around. however, it seems to me that *occasionally* the realm
problems to be solved justify the new syntax. a couple of (perhaps weak)
examples are lex and yacc themselves. lex lives in the realm
of regular expressions so it has a regular expression-ish syntax.
yacc deals with grammars and so has a bnf-ish syntax.
seems like the ease of abuse of tools implies an ease of use.
it might be true that lex/yacc are such that sytaxes designed to
be parsed with these tend to be "bad" syntaxes. if this is the
claim, the argument is well outside of my ability to back either
way. though i would be glad to hear what anyone might wish to say
> (Perhaps finite state
> machines and parsing techniques should be banned from CS
> undergraduate curricula, so that students could actually
> learn how to be part of the _solution_ to computer problems,
> instead of becoming additional parts of the _problem_.)
or perhaps more "wisdom" should be taught in CS curricula.
"parsing tools dont proliferate esoteric syntaxes.
programmers proliferate esoteric syntaxes."
(maybe this *is* the wisdom which is taught...that of job security ;-)
Return to the
Search the comp.compilers archives again.