[Fwd: Re: Unreachable label]
Frank Heckenbach
ih8mj at fjf.gnu.de
Mon Jun 11 14:06:27 CEST 2007
Bart van den Broek wrote:
> Gotos have use for automatically generated code, for example the re2c Lexer
> generator.
I don't know this program, but e.g. flex doesn't generate any gotos,
even tough it generates C where gotos are somewhat more common than
in Pascal, but instead uses a switch (case) statement. (Actually,
the flex output does contain a few gotos, but funnily in the
hand-written code which is just copied into the output. So I suppose
they could be replaced in this code just as well as in any other
code.)
Frank
--
Frank Heckenbach, f.heckenbach at fh-soft.de, http://fjf.gnu.de/, 7977168E
GPC To-Do list, latest features, fixed bugs:
http://www.gnu-pascal.de/todo.html
GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8
More information about the Gpc
mailing list