BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Boolean grammar

Print-Friendly
About 1 pages (339 words)

Bookmark and Share Know this topic well? Help others and get FREE products!

Boolean grammars are a class of formal grammars studied in formal language theory. They extend the basic type of grammars, the context-free grammars, with conjunction and negation operations. Besides these explicit operations, Boolean grammars allow implicit disjunction represented by multiple rules for a single nonterminal symbol, which is the only logical connective expressible in context-free grammars. Conjunction and negation can be used, in particular, to specify intersection and complement of languages. An intermediate class of grammars known as conjunctive grammars allows conjunction and disjunction, but not negation. The rules of a Boolean grammar are of the form <math>A \to \alpha_1 \wedge \ldots \wedge \alpha_m \wedge \lnot\beta_1 \wedge \ldots \wedge \lnot\beta_n </math> where <math>A</math> is a nonterminal, <math>m+n \ge 1</math> and <math>\alpha_1</math>, ..., <math>\alpha_m</math>, <math>\beta_1</math>, ..., <math>\beta_n</math> are strings formed of symbols in <math>\Sigma</math> and <math>N</math>. Informally, such a rule asserts that every string <math>w</math> over <math>\Sigma</math> that satisfies each of the syntactical conditions represented by <math>\alpha_1</math>, ..., <math>\alpha_m</math> and none of the syntactical conditions represented by <math>\beta_1</math>, ..., <math>\beta_n</math> therefore satisfies the condition defined by <math>A</math>. There exist several formal definitions of the language generated by a Boolean grammar. They have one thing in common: if the grammar is represented as a system of language equations with union, intersection, complementation and concatenation, the languages generated by the grammar must be the solution of this system. The semantics differ in details, some define the languages using language equations, some draw upon ideas from the field of logic programming. However, these nontrivial issues of formal definition are mostly irrelevant for practical considerations, and one can construct grammars according to the given informal semantics. The practical properties of the model are similar to those of conjunctive grammars, while the descriptional capabilities are further improved. In particular, some practically useful properties inherited from context-free grammars, such as efficient parsing algorithms, are retained.

External links

View More Summaries on Boolean grammar
 
Ask any question on Boolean grammar and get it answered FAST!
Answer questions in BookRags Q&A and earn points toward
discounted or even FREE Study Guides and other BookRags products!
Learn more about BookRags Q&A
Copyrights
Boolean grammar from Wíkipedia. ©2006 by Wíkipedia. Licensed under the GNU Free Documentation License. View a list of authors or edit this article.

Article Navigation
Join BookRagslearn moreJoin BookRags




About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy