home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!das-news.harvard.edu!spdcc!iecc!compilers-sender
- From: buehlman@iwf.mabp.ethz.ch (Buehlmann Thomas)
- Newsgroups: comp.compilers
- Subject: Pointer to Ref on Operator-Evaluation-Machine
- Keywords: design, prolog, comment
- Message-ID: <92-11-036@comp.compilers>
- Date: 9 Nov 92 14:22:10 GMT
- Article-I.D.: comp.92-11-036
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: buehlman@iwf.mabp.ethz.ch (Buehlmann Thomas)
- Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
- Lines: 23
- Approved: compilers@iecc.cambridge.ma.us
-
- I am lookin for a pointer to any text, report or similar about the following
- idea:
-
- If we build a recursive descent-parser it's very awkward to have to design
- the grammar in such a way that it reflects the operators priority, arity,
- associativity and the direction of evaluation. I remember that there are
- some quite general evaluation schemes to evaluate such expressions without
- having to adjust the grammar dramatically. Who remembers where such an
- evaluation-machine is described.
-
- Note that such techniques must be applied in Prolog for it allows for
- the definition of operators in order to extend the already existing operators.
-
- Please do reply by mail to
- buehlmann@iwf.mabp.ethz.ch
- and I will post a summary of answers.
-
- Thanks, Thomas
- [The Ritchie C compiler used RD for most of the parser, but a simple operator
- precedence scheme for expressions. Try that. -John]
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-