Hello.
I have to write a parser for Common LISP and the assignment is to do it
with YACC and LEX. So I'm looking for a yacc and lex specification for
Common-LISP. Does anyone know where I can find this?
I know the LEX specification should have this format:
-----
%{
C declarations and definitions
%}
lex definitions
%%
regular expressions and actions
%%
C functions
----
But, I can't find it anywhere. The YACC specification looks similar to
the LEX specification and I need that too.
I will really appreciate it if anyone can tell me where to find this.
Thanks in advance.
-------------------
\/\/outer Buzing
·····@pi.net
·······@htsa.hva.nl
Wouter Buzing <·····@pi.net> wrote:
+---------------
| I have to write a parser for Common LISP and the assignment
| is to do it with YACC and LEX.
+---------------
Whoever did that to you must really hate Lisp! (Or else they hate
YACC & LEX and your *next* assignment will be to write the parser
in Common Lisp...) ;-}
Common Lisp itself is probably the easiest language to write a parser
for Common Lisp in. Though some suggest it could use some help. See:
ftp://ftp.netcom.com/pub/hb/hbaker/Prag-Parse.ps.Z
"Pragmatic Parsing in Common Lisp". ACM Lisp Pointers 4,2
(Apr-Jun 1991), 3-15. If you have Common Lisp, you shouldn't
need to hack Unix 'lex' and 'yacc'. 14 pages.
-Rob
-----
Rob Warnock, 7L-551 ····@sgi.com
Silicon Graphics, Inc. http://reality.sgi.com/rpw3/
2011 N. Shoreline Blvd. Phone: 415-933-1673 FAX: 415-933-0979
Mountain View, CA 94043 PP-ASEL-IA