Bison Question: Ambiguous Grammar?

2005-05-06 Thread Claus Brabrand
Hi, I have a question about Bisons GLR parser. Is there a way for Bison (in %glr-parser mode) to return a parse tree (doesn't matter which) when parsing according to an ambiguous grammar? Thanks in advance, /Claus. -- Claus Brabrand, Ph.D. [EMAIL PROTECTED] http://www.daimi.au.dk/~brabrand/ ___

Virus detected

2005-05-06 Thread Postmaster
GROUP securiQ.Watchdog Server: MHUB107 --- The following attachments contained viruses and were removed in order to protect Ernst & Young system resources. Please innoculate the infected files and resend them. ---

Re: Bison Question: Ambiguous Grammar?

2005-05-06 Thread Hans Aberg
At 12:49 +0200 2005/05/06, Claus Brabrand wrote: I have a question about Bisons GLR parser. Is there a way for Bison (in %glr-parser mode) to return a parse tree (doesn't matter which) when parsing according to an ambiguous grammar? Bison never returns a parse tree. If you want that, you need to d

Re: Bison Question: Ambiguous Grammar?

2005-05-06 Thread Claus Brabrand
Hans Aberg wrote: At 12:49 +0200 2005/05/06, Claus Brabrand wrote: I have a question about Bisons GLR parser. Is there a way for Bison (in %glr-parser mode) to return a parse tree (doesn't matter which) when parsing according to an ambiguous grammar? Bison never returns a parse tree. If you want th

Re: Bison Question: Ambiguous Grammar?

2005-05-06 Thread Hans Aberg
At 19:21 +0200 2005/05/06, Claus Brabrand wrote: Yes, I realize there's no parse tree beyond what I may chose to construct in the action code myself. What I meant is: is there a way for Bison to take the actions according to one (any) of the parses? The current Bison GLR parsers work so that whe