[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison for CL?
Ah, one additional note about the only (I think) mildly obscure part of
hooking up Lisp to Bison. The lisp code in the grammar file has to
conform to the C-like Bison grammar, so Lisp single quotes don't work so
hot. Instead, I just use back-quote, so 'foo should be written as `foo.
So, in my gram.y file, you'll find the production:
upper_limit : ICONST { (setq $$ $1) }
| ID_NAME { (setq $$ $1) }
| '*' { (setq $$ `*) }
;
This is something to note, anyway, if anyone ever writes any
documentation for lusers.
--Skef