[climacs-devel] Extra open-paren on parse stack in Common-lisp syntax

Robert Strandh strandh at labri.fr
Mon May 9 14:29:21 UTC 2005


Christophe Rhodes writes:
 > Here is a guess: the list-expr in cl-syntax contains (as the list
 > items) CL-TERMINALS, which is also the target symbol of the grammar
 > itself.  I'm willing to believe that this confuses matters.
 > 
 >     (setf parser (make-instance 'parser
 > 				:grammar *cl-grammar*
 > 				:target 'cl-terminals))
 > 
 > and
 > 
 > (add-cl-rule (list-expr -> ((start paren-open)
 >   			    (items cl-terminals)
 > 			    (end paren-close))
 > 			:start start :items items :end end))
 > 
 > Robert, is this likely to be the cause of the problem?  

As you guessed yourself, the answer is most likely "no".

 > If so, any
 > idea how to fix it?

Not yet.  I have had an intense week with looking more at incremental
redisplay (which now takes up as much time as the parser) in HTML
syntax.  I'll start looking into CL syntax shortly. 

Take care, 
-- 
Robert Strandh

---------------------------------------------------------------------
Greenspun's Tenth Rule of Programming: any sufficiently complicated C
or Fortran program contains an ad hoc informally-specified bug-ridden
slow implementation of half of Common Lisp.
---------------------------------------------------------------------



More information about the climacs-devel mailing list