[climacs-devel] grammar definition

Nicolas Sceaux nicolas.sceaux at free.fr
Sat Jan 7 14:53:26 UTC 2006


Nicolas Sceaux <nicolas.sceaux at free.fr> writes:

> Hello,
>
> I've been experimenting a bit with various ways of defining a grammar
> like lisp-syntax' one for the LR parser, but I'm not really satisfied and
> I'm sure gurus here have some better thoughts about it.

Here is a patch where this DEFINE-GRAMMAR macro is implemented and
called in lisp-syntax.lisp. Some parts are not really neat, particularly
the way (throw 'done nil) actions are defined, or parser-state
inheritance declarations... Suggestions and comments are most welcome.

nicolas

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lr.patch
Type: text/x-patch
Size: 47356 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20060107/9aaf7f15/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lr-syntax.lisp
URL: <https://mailman.common-lisp.net/pipermail/climacs-devel/attachments/20060107/9aaf7f15/attachment.ksh>


More information about the climacs-devel mailing list