Global Information Lookup Global Information

Recursive grammar information


In computer science, a grammar is informally called a recursive grammar if it contains production rules that are recursive, meaning that expanding a non-terminal according to these rules can eventually lead to a string that includes the same non-terminal again. Otherwise it is called a non-recursive grammar.[1]

For example, a grammar for a context-free language is left recursive if there exists a non-terminal symbol A that can be put through the production rules to produce a string with A (as the leftmost symbol).[2][3] All types of grammars in the Chomsky hierarchy can be recursive and it is recursion that allows the production of infinite sets of words.[1]

  1. ^ a b Nederhof, Mark-Jan; Satta, Giorgio (2002), "Parsing Non-recursive Context-free Grammars", Proceedings of the 40th Annual Meeting on Association for Computational Linguistics (ACL '02), Stroudsburg, PA, USA: Association for Computational Linguistics, pp. 112–119, doi:10.3115/1073083.1073104.
  2. ^ Notes on Formal Language Theory and Parsing, James Power, Department of Computer Science National University of Ireland, Maynooth Maynooth, Co. Kildare, Ireland.
  3. ^ Moore, Robert C. (2000), "Removing Left Recursion from Context-free Grammars", Proceedings of the 1st North American Chapter of the Association for Computational Linguistics Conference (NAACL 2000), Stroudsburg, PA, USA: Association for Computational Linguistics, pp. 249–255.

and 24 Related for: Recursive grammar information

Request time (Page generated in 0.8632 seconds.)

Recursive grammar

Last Update:

In computer science, a grammar is informally called a recursive grammar if it contains production rules that are recursive, meaning that expanding a non-terminal...

Word Count : 314

Formal grammar

Last Update:

language translation tools. A recursive grammar is a grammar that contains production rules that are recursive. For example, a grammar for a context-free language...

Word Count : 3431

Recursion

Last Update:

defining the other cases recursively in terms of the simple one. A recursive grammar is a formal grammar that contains recursive production rules. Recursion...

Word Count : 3644

Recursive descent parser

Last Update:

of the grammar. Thus the structure of the resulting program closely mirrors that of the grammar it recognizes. A predictive parser is a recursive descent...

Word Count : 1119

Parsing expression grammar

Last Update:

expression grammar can be converted directly into a recursive descent parser. Due to the unlimited lookahead capability that the grammar formalism provides...

Word Count : 6426

LL grammar

Last Update:

LL grammars; for parsing, see LL parser or recursive descent parser. Given a natural number k ≥ 0 {\displaystyle k\geq 0} , a context-free grammar G =...

Word Count : 1997

Left recursion

Last Update:

+3{\displaystyle {}+3}, a suitable suffix. In terms of context-free grammar, a nonterminal is left-recursive if the leftmost symbol in one of its productions is itself...

Word Count : 1847

Chomsky hierarchy

Last Update:

constraints on the productions rules. Note that the set of grammars corresponding to recursive languages is not a member of this hierarchy; these would...

Word Count : 1310

Tail recursive parser

Last Update:

recursive grammars. They use a smaller amount of stack space than regular recursive descent parsers. They are also easy to write. Typical recursive descent...

Word Count : 369

Terminal and nonterminal symbols

Last Update:

grammar and which cannot be changed using the rules of the grammar. Applying the rules recursively to a source string of symbols will usually terminate in...

Word Count : 907

Parser combinator

Last Update:

input triggers them. In such cases, the recursive descent parser may default (perhaps unknown to the grammar designer) to one of the possible ambiguous...

Word Count : 1730

Memoization

Last Update:

ambiguous CFG in polynomial time (Θ(n4) for left-recursive grammars and Θ(n3) for non left-recursive grammars). Their top-down parsing algorithm also requires...

Word Count : 3744

Parsing

Last Update:

some context-free grammars and parsing expression grammars Recursive descent parser: a top-down parser suitable for LL(k) grammars Shunting-yard algorithm:...

Word Count : 4857

Postmodernism Generator

Last Update:

random text from recursive grammars. A free version is also hosted online. The essays are produced from a formal grammar defined by a recursive transition network...

Word Count : 340

Recursive language

Last Update:

sequences of symbols taken from a fixed alphabet) is called recursive if it is a recursive subset of the set of all possible finite sequences over the...

Word Count : 809

PackCC

Last Update:

C from a grammar described in a PEG, Gives a parser great efficiency by packrat parsing, Supports direct and indirect left-recursive grammar rules, Generates...

Word Count : 404

Speech Recognition Grammar Specification

Last Update:

the expressive power of a context-free grammar. A grammar processor that does not support recursive grammars has the expressive power of a finite state...

Word Count : 697

Primitive recursive function

Last Update:

In computability theory, a primitive recursive function is, roughly speaking, a function that can be computed by a computer program whose loops are all...

Word Count : 6723

Comparison of parser generators

Last Update:

concept of recursive "nesting" ("every A is eventually followed by a matching B"). A classic example of a problem which a regular grammar cannot handle...

Word Count : 1106

LR parser

Last Update:

are called recursive. This grammar uses recursive rules to handle repeated math operators. Grammars for complete languages use recursive rules to handle...

Word Count : 8128

Recursive transition network

Last Update:

A recursive transition network ("RTN") is a graph theoretical schematic used to represent the rules of a context-free grammar. RTNs have application to...

Word Count : 153

Unrestricted grammar

Last Update:

unrestricted grammar, other than each of their left-hand sides being non-empty.: 220  This grammar class can generate arbitrary recursively enumerable languages...

Word Count : 860

Michael Brame

Last Update:

our understanding of syntax while simplifying traditional grammar, thus embracing the recursive nature of language and the hierarchical arrangement of linguistic...

Word Count : 1121

Computably enumerable set

Last Update:

a set S of natural numbers is called computably enumerable (c.e.), recursively enumerable (r.e.), semidecidable, partially decidable, listable, provable...

Word Count : 1285

PDF Search Engine © AllGlobal.net