bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with bison creating a GLR parser


From: Paul Hilfinger
Subject: Re: Problems with bison creating a GLR parser
Date: Mon, 27 Jan 2003 11:01:35 -0800

OK.  It's clear what needs to be done here: embedded actions make what
are in effect references of the form $0, $-1, ..., since they are
translated rules with empty RHSs.  The working test case does not 
go into GLR mode, and so does things exactly like lalr.c---those
"non-positive" semantic values are right there on the stack in the
right place.  In GLR mode, the semantic values are available through
what is essentially a linked list, whose members I copy as needed into
an array (so that the action code can do the same thing regardless of
the parser's current mode).  I will have to arrange to keep track of
the number of symbols that need to be copied by scanning the actions,
or something like that.  I'll let you know.

Paul Hilfinger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]