home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!aplcen.apl.jhu.edu!aplcenmp!hall
- From: hall@aplcenmp.apl.jhu.edu (Marty Hall)
- Subject: Re: Lisp Parsers
- Message-ID: <C0DvKu.Gqp@aplcenmp.apl.jhu.edu>
- Organization: AAI Corp AI Lab, JHU P/T CS Faculty
- References: <11586@uqcspe.cs.uq.oz.au>
- Date: Tue, 5 Jan 1993 13:46:05 GMT
- Lines: 21
-
- In article <11586@uqcspe.cs.uq.oz.au> berglas@cs.uq.oz.au writes:
- >
- >Seriously, (> (+ x 1) (* y 2)) is ugly, and it would be pretty easy
- >to add a parser to Lisp that could be used instead of the normal Reader.
- [...]
- >If anyone has heard of such a thing I would be interested to know.
-
- Well, the tone of your whole message leads me to believe that your are looking
- for a general parser, in which case I know of nothing already available. But on
- the offchance that you were just looking for infix-to-prefix translation for
- arithmetic operators, both Winston and Horn (_LISP_ 3rd Ed) and the more
- advanced text by Norvig (_Paradigms of AI Programming_) give examples of this
- with an easy way to extend it.
-
- Also, I personally prefer the prefix notation so that I don't have to remember
- precedence and associativity rules. Anecdotes prove little and are biased
- by personal tastes, but when I use ML (esp code written by others), I somewhat
- miss the consistency and simplicity of the infix notation.
-
- - Marty
- (proclaim '(inline skates))
-