Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Ambiguous non-terminal in GLR

15 views
Skip to first unread message

Maxim Reznik

unread,
Apr 1, 2013, 4:16:51 AM4/1/13
to
Hi, all

I'm playing with GLR and have a question.

When GLR parser reduces some text to the same non-terminal in two or
more ways it merges parse subtrees. Rekers uses 'symbol nodes' for this.

I this not each non-terminal could cause a merge. Knowing in advance
what non-terminals never merge will greatly simplify parse tree
construction.

For instance in Elkhound Technical Report the author implemented C++
grammar for GLR parser. He describes it:

The grammar currently has 37 shift/reduce conflicts, 47
reduce/reduce conflicts and 8 ambiguous nonterminal.

How can I separate ambiguous and unambiguous nonterminal for a given
CFG? Where can I read about this?


Thank you
--
Maxim Reznik

0 new messages