CRONOS-19 / lalr-scm

Automatically exported from code.google.com/p/lalr-scm
0 stars 0 forks source link

vector-ref error on ___recovery #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There seems to be a problem with the ___recovery function setting ___sp to
a negative value after an error occurs, which causes the parsing loop to
die.  Specifically, at lalr.scm:1871, I get:

  In procedure vector-ref in expression (vector-ref ___stack ___sp):
  Value out of range 0 to 4294967295: -1

If I change line 1830 from

  (if (< sp 0)

to

  (if (>= sp 0)

I seem to be able to get a little bit further, although that doesn't seem
to be the right fix.

Original issue reported on code.google.com by jool...@gmail.com on 29 Nov 2008 at 4:40

GoogleCodeExporter commented 8 years ago
Can you provide a parser that reproduces the error? 

Which Scheme system do you use? Which version?

Original comment by schemeway on 30 Nov 2008 at 12:52

GoogleCodeExporter commented 8 years ago

Original comment by schemeway on 30 Nov 2008 at 7:32