|why use flex? firstname.lastname@example.org (Frank Hale) (1999-01-27)|
|Re: why use flex? email@example.com (1999-01-31)|
|Re: why use flex? firstname.lastname@example.org (1999-01-31)|
|Re: why use flex? email@example.com (1999-02-01)|
|Re: why use flex? firstname.lastname@example.org (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? email@example.com (1999-02-05)|
|[4 later articles]|
|From:||Frank Hale <firstname.lastname@example.org>|
|Date:||27 Jan 1999 21:15:32 -0500|
|Organization:||AT&T WorldNet Services|
|Keywords:||lex, question, comment|
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.
From: Frank Hale
[Writing your first flex lexer takes a while. After that, I find it
much faster than hand-coding. Also, if you can arrange your lexer so
it doesn't have to back up, which is usually possible, it's generally
faster than hand-coded because of the DFA pattern matching engine.
Return to the
Search the comp.compilers archives again.