Re: An Odd Grammar Question

Joachim Durchholz <joachim.durchholz@munich.netsurf.de>
18 May 1998 00:10:00 -0400

          From comp.compilers

Related articles
An Odd Grammar Question wlm@panix3.panix.com (1998-05-15)
Re: An Odd Grammar Question vadik@siber.com (Vadim Maslov) (1998-05-17)
Re: An Odd Grammar Question joachim.durchholz@munich.netsurf.de (Joachim Durchholz) (1998-05-18)
Re: An Odd Grammar Question chrisd@etcons.com (Chris Dodd) (1998-05-18)
Re: An Odd Grammar Question johnmce@world.std.com (1998-05-23)
| List of all articles for this month |
From: Joachim Durchholz <joachim.durchholz@munich.netsurf.de>
Newsgroups: comp.compilers
Date: 18 May 1998 00:10:00 -0400
Organization: Compilers Central
References: 98-05-088 98-05-108
Keywords: parse, Lisp, comment

Our moderator wrote:
>
> [There are other languages than Cobol with a "super close". Various
> cruddy old Basics come to mind. -John]


Don't forget the super brackets in some Lisp dialect (Interlisp I
think - it's been decades since), like
  < some S-expressions that may be missing a few closing parentheses >
The closing > will stand in for the missing closing parentheses.
This is a bit different from the END-ALL problem because < > can be
nested, but I think the technique for parsing these is the same.


Regards,
Joachim
[My recollection is that those superparens were expanded to regular
parens at the time they were scanned, but I can imagine that different
versions of Lisp did different things. -John]
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.