Re: Learning only one lexer made me blind to its hidden assumptions

George Neuner <gneuner2@comcast.net>
Thu, 14 Jul 2022 16:46:36 -0400

          From comp.compilers

Related articles
Learning only one lexer made me blind to its hidden assumptions costello@mitre.org (Roger L Costello) (2022-07-07)
Re: Learning only one lexer made me blind to its hidden assumptions luser.droog@gmail.com (luser droog) (2022-07-12)
Re: Learning only one lexer made me blind to its hidden assumptions jvilar@uji.es (Juan Miguel Vilar Torres) (2022-07-13)
Re: Learning only one lexer made me blind to its hidden assumptions drikosev@gmail.com (Ev. Drikos) (2022-07-13)
Re: Learning only one lexer made me blind to its hidden assumptions antispam@math.uni.wroc.pl (2022-07-13)
Re: Learning only one lexer made me blind to its hidden assumptions gneuner2@comcast.net (George Neuner) (2022-07-14)
Re: Learning only one lexer made me blind to its hidden assumptions 480-992-1380@kylheku.com (Kaz Kylheku) (2022-07-15)
Re: Learning only one lexer made me blind to its hidden assumptions antispam@math.uni.wroc.pl (2022-07-15)
| List of all articles for this month |
From: George Neuner <gneuner2@comcast.net>
Newsgroups: comp.compilers
Date: Thu, 14 Jul 2022 16:46:36 -0400
Organization: A noiseless patient Spider
References: 22-07-006 22-07-010
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="49458"; mail-complaints-to="abuse@iecc.com"
Keywords: lex, performance
Posted-Date: 14 Jul 2022 22:18:15 EDT

On Wed, 13 Jul 2022 19:52:45 -0000 (UTC), antispam@math.uni.wroc.pl
wrote:


>Hmm, from flex manual:
>
>: -Ce, --ecs
>: construct equivalence classes
>:
>: -Cm, --meta-ecs
>: construct meta-equivalence classes
>
>If you want smaller tables use options above and flex DFA will
>work on character classes.


But note that Flex /may/ run considerably slower if you make heavy use
of equivalence classes. IIRC, that results in (moral equivalent of)
NFA rather than DFA.


George
[On modern computers it's hard to imagine a scanner so big that the space
savings from those two options are worth it. 64K PDP-11 and all that. -John]



Post a followup to this message

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