home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!usenet.coe.montana.edu!news.u.washington.edu!ogicse!das-news.harvard.edu!spdcc!iecc!compilers-sender
- From: jeremy@sw.oz.au (Jeremy Fitzhardinge)
- Newsgroups: comp.compilers
- Subject: SUMMARY: Constant folding in the parser
- Summary: It's best not to
- Keywords: parse, optimize
- Message-ID: <92-08-050@comp.compilers>
- Date: 12 Aug 92 09:04:23 GMT
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: jeremy@sw.oz.au (Jeremy Fitzhardinge)
- Organization: Softway Pty Ltd
- Lines: 23
- Approved: compilers@iecc.cambridge.ma.us
-
- A week ago or so, I asked whether a non-ambigious grammar can be
- constructed to eliminate constant expressions without explicit semantic
- analysis of the parse tree.
-
- The most popular answer was "Keep semantic analysis away from the parser",
- and do the constant elimination as the tree is constructed. This can be
- generalized to putting off such optimisations until the tree is completely
- built, so that other transformations can be done.
-
- Thanks to:
- John R. Levine <johnl@iecc.cambridge.ma.us>
- twpierce@amhux1.amherst.edu (Tim Pierce)
- kurt@tc.fluke.COM (Kurt Guntheroth)
- "Jorge Tapia Jopia" <jtapia@vandi.ars.cl>
- e86jh@efd.lth.se (Jens Hansson)
- nelson@berlioz.nsc.com (Taed Nelson)
-
- J
- --
- jeremy@softway.sw.oz.au ph:+61 2 698 2322-x122 fax:+61 2 699 9174
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-