Re: Extended context-free grammar
- From: daw@xxxxxxxxxxxxxxxxxxxxxxxx (David Wagner)
- Date: Thu, 22 Jun 2006 20:57:43 +0000 (UTC)
Dirk Thierbach wrote:
- If there are productions "S ::= x' T A", "T ::= x U B" and
"U ::= u C", then add a production "S ::= "u C B A".
This is a very interesting approach, one I hadn't considered.
But, it doesn't look like it is guaranteed to terminate. For
example, if the original grammar is
S ::= x' T A
T ::= x U B
U ::= x' T
then it looks like we get into an infinite loop, if I understand
your transformation rules correctly. First we add the production
S ::= x' T B A
then we add the production
S ::= x' T B B A
and then
S ::= x' T B B B A
and so on ad infinitum. It may be that this kind of case can be
detected and avoided; I don't know yet. Thanks for pointing out
the potential relevance of Greibach normal form -- that seems
promising and worthy of further examination.
.
- Follow-Ups:
- Re: Extended context-free grammar
- From: Dirk Thierbach
- Re: Extended context-free grammar
- References:
- Extended context-free grammar
- From: David Wagner
- Re: Extended context-free grammar
- From: Dirk Thierbach
- Extended context-free grammar
- Prev by Date: Re: Programming join documentation - is this imaginatioin ?
- Next by Date: Matching in bipartite graphs
- Previous by thread: Re: Extended context-free grammar
- Next by thread: Re: Extended context-free grammar
- Index(es):
Relevant Pages
|