why use flex?

Frank Hale <frankhale@worldnet.att.net>
27 Jan 1999 21:15:32 -0500

          From comp.compilers

Related articles
why use flex? frankhale@worldnet.att.net (Frank Hale) (1999-01-27)
Re: why use flex? irclark@latveria.castledoom.org (1999-01-31)
Re: why use flex? rkrayhawk@aol.com (1999-01-31)
Re: why use flex? tnaran@direct.ca (1999-02-01)
Re: why use flex? colas@aye.inria.fr (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? tnaran@direct.ca (1999-02-05)
[4 later articles]
| List of all articles for this month |
From: Frank Hale <frankhale@worldnet.att.net>
Newsgroups: comp.compilers
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
Email: frankhale@worldnet.att.net
ICQ: 7205161
Website: http://www.franksstuff.com/
[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.
-John]


Post a followup to this message

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