Re: why use flex? (Isaac)
31 Jan 1999 01:13:51 -0500

          From comp.compilers

Related articles
why use flex? (Frank Hale) (1999-01-27)
Re: why use flex? (1999-01-31)
Re: why use flex? (1999-01-31)
Re: why use flex? (1999-02-01)
Re: why use flex? (1999-02-03)
Re: why use flex? Marko.Makela@HUT.FI (Marko =?ISO-8859-1?Q?M=E4kel=E4?=) (1999-02-03)
Re: why use flex? (1999-02-05)
Re: why use flex? (Theodore.Papadopoulo) (1999-02-05)
[3 later articles]
| List of all articles for this month |

From: (Isaac)
Newsgroups: comp.compilers
Date: 31 Jan 1999 01:13:51 -0500
Organization: MindSpring Enterprises
References: 99-01-111
Keywords: lex

On 27 Jan 1999 21:15:32 -0500, Frank Hale <> wrote:
>Why would someone use flex as opposed to writing there own lexer? I am
>developing my own scripting language and find it much simpler to
>create a lexer on my own, that way I can tailor it to my needs. What
>makes using flex any easier, the code it generates is very large and
>confusing even for a simple lexer.

I would expect that for most users of flex/lex, the complexity of the
generated scanner code is of little importance. The flex source is
what they will be maintaining. My experience is that flex scanners
are easy to maintain and particularly easy to expend compared to hand
coded scanners. On the other hand, I have not had occasion to need
scanning speeds above those easily obtainable with flex.


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.