Re: Regular Tree Grammar vs. Context-Free Grammar
- From: Ben Bacarisse <ben.usenet@xxxxxxxxx>
- Date: Fri, 08 Dec 2006 02:49:55 +0000
Eric Wohlstadter <wohlstad@xxxxxxxxx> writes:
Hello,
I am wondering if anyone can help me with information about
the relationship between regular tree grammars and CFGs? In particular
do the languages accepted by CFGs include (subsume) the languages
accepted by regular tree grammars?
The right hand sides of the productions of an RTG are trees and those
of a CFG are sequences, but the way the productions of an RTG are
written gives you a CFG if you just turn the meta-notation into
notation! Construct a CFG whose terminal alphabet is augmented with
three symbols: "{", ";" and "}" and turn each RTG production of the
form:
A -> f(X,Y)
into:
A -> f { X ; Y }
and so on. I've changed the brackets and separator to make the
transformation clearer, but there is no need to.
--
Ben.
.
- Follow-Ups:
- Re: Regular Tree Grammar vs. Context-Free Grammar
- From: Hans Aberg
- Re: Regular Tree Grammar vs. Context-Free Grammar
- References:
- Regular Tree Grammar vs. Context-Free Grammar
- From: Eric Wohlstadter
- Regular Tree Grammar vs. Context-Free Grammar
- Prev by Date: Regular Tree Grammar vs. Context-Free Grammar
- Next by Date: Re: maximal 3-colorable subset
- Previous by thread: Regular Tree Grammar vs. Context-Free Grammar
- Next by thread: Re: Regular Tree Grammar vs. Context-Free Grammar
- Index(es):
Relevant Pages
|