Regular tree grammar

Regular tree grammar

In Computer Science, a regular tree grammar is a formal grammar that allows to generate trees.

Definition

A regular tree grammar G is defined by the tuple:

G = (N, Sigma, Z, P),

where

* N is a set of non terminals,
* Sigma is a ranked alphabet (i.e., an alphabet whose symbols have an associated arity),
* Z is the starting non terminal, and
* P is a set of productions of the form A ightarrow t, where A in N, and t in T_Sigma (N).

For this grammar G, we define also the relation Rightarrow_G subseteq T_Sigma (N) imes T_Sigma (N) as follows.

For every t_1, t_2 in T_Sigma (N), t_1 Rightarrow_G t_2, if there is a context S in C and a production A ightarrow t in P such that:

* t_1 = S [A] , and
* t_2 = S [t] .

The tree language generated by G is the language

L(G) = { t in T_Sigma | Z Rightarrow_G^* t}.

Where Rightarrow_G^* denotes successive applications of Rightarrow_G. Such languages are called Tree languages.

External links

* [http://www.grappa.univ-lille3.fr/tata/ Tree Automata Techniques and Applications]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Regular expression — In computing, a regular expression provides a concise and flexible means for matching (specifying and recognizing) strings of text, such as particular characters, words, or patterns of characters. Abbreviations for regular expression include… …   Wikipedia

  • grammar — I (New American Roget s College Thesaurus) Mode of speaking and writing Nouns 1. grammar; accidence, syntax, analysis, synopsis, praxis, punctuation, syllabi[fi]cation; agreement. See speech, language, writing. 2. a. part of speech; participle;… …   English dictionary for students

  • Parser Grammar Engine — The Parser Grammar Engine (originally Parrot Grammar Engine) or PGE is a compiler and runtime for a Perl 6 rules for the Parrot virtual machine. [cite web | url=http://search.cpan.org/ ltoetsch/parrot 0.2.2/compilers/pge/README | title=Parrot… …   Wikipedia

  • Context-free grammar — In formal language theory, a context free grammar (CFG) is a formal grammar in which every production rule is of the form V → w where V is a single nonterminal symbol, and w is a string of terminals and/or nonterminals (w can be empty). The… …   Wikipedia

  • Formal grammar — In formal semantics, computer science and linguistics, a formal grammar (also called formation rules) is a precise description of a formal language ndash; that is, of a set of strings over some alphabet. In other words, a grammar describes which… …   Wikipedia

  • Parsing expression grammar — A parsing expression grammar, or PEG, is a type of analytic formal grammar that describes a formal language in terms of a set of rules for recognizing strings in the language. A parsing expression grammar essentially represents a recursive… …   Wikipedia

  • Controlled grammar — Controlled grammars[1] are a class of grammars that extend, usually, the context free grammars with additional controls on the derivations of a sentence in the language. A number of different kinds of controlled grammars exist, the four main… …   Wikipedia

  • Generative grammar — In theoretical linguistics, generative grammar refers to a particular approach to the study of syntax. A generative grammar of a language attempts to give a set of rules that will correctly predict which combinations of words will form… …   Wikipedia

  • Modern Greek grammar — Main article: Modern Greek The grammar of Standard Modern Greek, as spoken in present day Greece and Cyprus, is basically that of Demotic Greek, but it has also assimilated certain elements of Katharevousa, the archaic, learned variety of Greek… …   Wikipedia

  • Context-sensitive grammar — A context sensitive grammar (CSG) is a formal grammar in which the left hand sides and right hand sides of any production rules may be surrounded by a context of terminal and nonterminal symbols. Context sensitive grammars are more general than… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”