[Top][All Lists]

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

Re: Error in GLR parser

From: Joel E. Denny
Subject: Re: Error in GLR parser
Date: Tue, 16 Mar 2010 12:58:43 -0400 (EDT)
User-agent: Alpine 1.00 (DEB 882 2007-12-20)

On Tue, 16 Mar 2010, address@hidden wrote:

> The parsing algorithm works fine, however, I was not able to find a safe way
> how to
> access "yytext" or another global variable in semantic
> actions that represents the terminal's attribute (the current yytext
> corresponding to a terminal).

Even in deterministic parsers, accessing yytext in the semantic actions 
can be problematic.  To learn the right way to do this in deterministic 
and GLR parsers, look for terms like "semantic value", "yylval", and "$$" 
in the Bison manual.

> Or could you redirect me, where could I ask, I know that this mailing list is
> intended
> mainly for bugs.

address@hidden is a better list.

reply via email to

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