Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Looking for Lisp Grammar

219 views
Skip to first unread message

Erik Naggum

unread,
Aug 10, 1995, 3:00:00 AM8/10/95
to
[Persky Yakov]

| I'm looking for Lisp grammar. It may be in one of 2 following forms:
| 1. As a YACC file (preferrable)
| 2. In the BNF (Backus Naur Form)
| Thanks in advance for any help.

why do you need this? maybe YACC/BNF is not the best solution to your
problem. btw, I haven't seen any such grammars.

#<Erik 3017053170>
--
#<Xyzzy 202B370B73>

Persky Yakov

unread,
Aug 10, 1995, 3:00:00 AM8/10/95
to
I'm looking for Lisp grammar. It may be in one of 2 following forms:
1. As a YACC file (preferrable)
2. In the BNF (Backus Naur Form)
Thanks in advance for any help.
Yakov.

Thomas A. Russ

unread,
Aug 11, 1995, 3:00:00 AM8/11/95
to
In article <...> pers...@lune.math.tau.ac.il (Persky Yakov) writes:
> I'm looking for Lisp grammar. It may be in one of 2 following forms:
> 1. As a YACC file (preferrable)
> 2. In the BNF (Backus Naur Form)

At its most basic :)

SYMBOL ::= ...

NUMBER ::= ...

STRING ::= ...

CONS ::= (EXPRESSION . EXPRESSION)

EXPRESSION ::= SYMBOL | NUMBER | STRING | CONS | ()


--
Thomas A. Russ, USC/Information Sciences Institute t...@isi.edu

Richard M. Alderson III

unread,
Aug 11, 1995, 3:00:00 AM8/11/95
to
In article <40cuau$k...@post.tau.ac.il> pers...@lune.math.tau.ac.il
(Persky Yakov) writes:

>I'm looking for Lisp grammar. It may be in one of 2 following forms:
> 1. As a YACC file (preferrable)
> 2. In the BNF (Backus Naur Form)

Look for John Allen's _Anatomy of LISP_ (1978, McGraw-Hill; ISBN 0-07-001115-X)
which has a BNF grammar (roughly 8 lines) and discusses the semantics thereof
for roughly 400 pages.

You can also see pp. 8-9 of _LISP 1.5 Programmer's Manual_ (2nd ed. 1965, MIT
Press, ISBN 0 262 13011 4).
--
Rich Alderson You know the sort of thing that you can find in any dictionary
of a strange language, and which so excites the amateur philo-
logists, itching to derive one tongue from another that they
know better: a word that is nearly the same in form and meaning
as the corresponding word in English, or Latin, or Hebrew, or
what not.
--J. R. R. Tolkien,
alde...@netcom.com _The Notion Club Papers_

0 new messages