> True. But a lot of trouble can be saved by using things like yacc...
Yacc is complex and error-prone.
It adds comparably much complexity to things. Also, Yacc by itself
does not cut it. You have to bring in the smaller cousin Lex, or Bison
if you are so inclined.
However, that complicates everything. Just think of the Makefile
hell you are suddenly into. Who would voluntarily bring in the
weird Lex and Yacc pair to solve a problem which is solved much
better with simpler tools?
Always, if you are as maschochistic as to insist that your computer
science teaching should be used in real life, and that Lex and Yacc
are indeed useful in real life, I would recommend you to have a look
at PCCTS, or the newer incarnation called ANTLR.
This is a lexer and parser hybrid, with the added benefit of a tree
construction feature on top. It uses a kind of predicates to get
a fresh approach to parsing.
See http://www.antlr.org.
However, for the task at hand, we should avoid the whole parsing business.
> > If for nothing else,
> > them simply because it actual is hard to keep a list sorted!
>
> I don't understand you here. Which list do you mean?
The LyXLex creature requires a list of keywords to function. This
is a simple list of tokens, but it only works if it is sorted.
Real life has shown that this is hard. Last time, it was Juergen
who couldn't remember the alphabet. Earlier, I have made the same
mistake, and I would wonder if not Lgb and everybody else that
has touched it has too sometime.
[Simple winged example of XTL power]
> No. If it is realy *that* easy it looks like a viable solution.
Thank you. Now, go back and drink some more beer.
> > If you think so, you must be drunk. Come to Norway and I'll buy you a beer.
>
> You mean drinking Norwegian beer makes me less drunk?
No. My line of reasoning was this:
1) Andr� was against XTL.
2) Andr� either did not know what XTL was, or he must be drunk to think this.
3) Asger explains what XTL can do, and now the only excuse for
Andr� to resist reason would involve alcohol.
4) Asger buys beer for Andr�, and then Asger is right no matter what.
Maybe I should get a beer as well.
Cheers,
Asger
P.S. *Are* you coming to Norway?