Research topic:grammar

Click to see an enlarged picture
grammar. Wikimedia Commons (Public Domain)

Pictures from Google Image Search

Click to see an enlarged picture
Click to see an enlarged picture
Click to see an enlarged picture
Click to see an enlarged picture
Find more facts and information on our topic page about grammar

grammar

A Dictionary of Computing | 2004 | | © A Dictionary of Computing 2004, originally published by Oxford University Press 2004. (Hide copyright information) Copyright

grammar One of the principal ways of specifying an infinite formal language by finite means. A grammar consists of a set of rules (called productions or rewrite rules) that may be used to derive one string from another by substring replacement. The strings of the specified language are obtained by repeated application of these rules, starting from some initial string. A grammar however has the additional feature that the alphabet is divided into a set T of terminal symbols and a set N of nonterminal symbols (or variables). While productions may be composed arbitrarily of terminals and nonterminals, the specified language contains strings of terminals only.

A grammar G can therefore be defined as comprising two sets of symbols T and N, a semi-Thue system over the union T N, and a distinguished member S of N. The language generated by G is the set of all strings over T that can be derived from S by a sequence of substring replacements (see semi-Thue system); S is known as the start symbol or sentence symbol. As an example, let T be {b,c}, N be {S,A} and let the productions be (1) SSA(2) SA(3) Abc

Then, for instance, starting from S we can derive bcbcbc via the following sequence (among others):

SA

by production 1

SAA

by production 1

AAA

by production 2

bcAA

by production 3

bcbcA

by production 3

bcbcbc

by production 3



The language generated is {bc, bcbc, bcbcbc, …}

These are the only strings of bs and cs in {b,c}* derivable from the start symbol S by the three production rules. A string such as SAbcA, which is derivable from S but still contains nonterminals, is referred to as a sentential form.

This is the most general form of grammar. Typically however some restriction is placed on the form that productions may take (see regular grammar, context-free grammar, context-sensitive grammar). The syntax of programming languages is usually specified by context-free grammars; the example given above is context-free, although the language can be specified by a regular grammar.

A slightly different way of generating a language is by means of an L-system (or Lindenmeyer system). A different approach altogether is to define a machine that tests any string for membership of the language, i.e. an automaton.

Cite this article
Pick a style below, and copy the text for your bibliography.

  • MLA
  • Chicago
  • APA

JOHN DAINTITH. "grammar." A Dictionary of Computing. 2004. Encyclopedia.com. 29 Nov. 2009 <http://www.encyclopedia.com>.

JOHN DAINTITH. "grammar." A Dictionary of Computing. 2004. Encyclopedia.com. (November 29, 2009). http://www.encyclopedia.com/doc/1O11-grammar.html

JOHN DAINTITH. "grammar." A Dictionary of Computing. 2004. Retrieved November 29, 2009 from Encyclopedia.com: http://www.encyclopedia.com/doc/1O11-grammar.html

Learn more about citation styles

Related newspaper, magazine, and trade journal articles from HighBeam Research

(Including press releases, facts, information, and biographies)

50 GRAMMARS FACING THE AXE; Parents in campaign to end pupil selection.(News)
Newspaper article from: The Mirror (London, England); 8/11/1999; ; 700+ words ; UP TO 50 grammar schools could be scrapped...country's 161 remaining grammars will turn comprehensive...comprehensives which were grammar schools that are now successful...their bid to get rid of the grammars, parents have seized on...
Grammar for teachers: attitudes and aptitudes.
Magazine article from: Academic Exchange Quarterly; 12/22/2003; ; 700+ words ; This article discusses the role of grammar in educating Secondary English Teachers...an English Concentration. The term "grammar" is difficult, with varied referents...common, but different, definitions of grammar (Hartwell 1985). They must link one...
Grammar: defying definition beyond two millennia.
Magazine article from: Academic Exchange Quarterly; 6/22/2005; ; 700+ words ; ...consensus has been reached regarding the definition of grammar since the term came into existence more than two...its practitioners regardless of the definition of grammar. Consequently, grammar is a problem term when discussing it, reading about...
Grammar schools put the great in Britain; Labour must not kick away a ladder of opportunity, says David Willetts.
Newspaper article from: The Birmingham Post (England); 10/29/1998; ; 700+ words ; ...of Britain's remaining 161 grammar schools. In his address...figures which show that the grammar schools in the Midlands are...best in the country with four grammars in the top 20 in a study of...headteacher of one of the Birmingham grammar schools who stated that her...
Grammar debate concerns all parents.(Letters)
Newspaper article from: The Birmingham Post (England); 2/10/2000; 700+ words ; ...to abolish our eight grammar schools take place...Force of support for grammars Sir, - I, with well...against Birmingham's grammar schools. Access was...support for Birmingham's grammars. If Case is unable...Nothing to fear over grammar row Sir, - We attended...
GRAMMAR SCHOOLS: the great debate EVENING MAIL SPECIAL ON THE EDUCATION ISSUE THAT HAS SWAMPED OURPOSTBAG
Newspaper article from: Evening Mail; 7/29/1999; 700+ words ; ...exposed to both the grammar schools and comprehensive...route of abolishing our grammars. I have been living...they are envious of our grammar schools. I applaud...eldest child went to a grammar school. From what I...We should keep our grammars and develop the comprehensive...
'Grammar Girl' wants us to speak, write better
Newspaper article from: Sunday Gazette-Mail; 11/4/2007; ; 700+ words ; ...KANSAS CITY, Mo. - We just had to ask. Grammar Girl, oh goddess of syntax, have you...editor who has launched a campaign to make grammar - dare we say it? - fun. "But I've...discussion starter." Like this crime against grammar found in a job ad posted on mcflorida...
GRAMMAR SCHOOLS: the great debate; EVENING MAIL SPECIAL ON THE EDUCATION ISSUE THAT HAS SWAMPED OUR POSTBAG.
Newspaper article from: Birmingham Evening Mail (England); 7/29/1999; 700+ words ; ...exposed to both the grammar schools and comprehensive...route of abolishing our grammars. I have been living...they are envious of our grammar schools. I applaud...eldest child went to a grammar school. From what I...We should keep our grammars and develop the comprehensive...
Grammar schools - Passing the test.(controversy over future of grammar schools in United Kingdom)
Magazine article from: The Economist (US); 1/15/2000; 700+ words ; ...started closing grammar schools in the name...now only 164 state grammars left out of a total...as Kent, with 33 grammar schools, all parents...area with fewer grammars, or even just one...schools which feed the grammars are allowed to vote...of the ballot. Grammar-school heads are...
DOES GRAMMAR MATTER ANYMORE? WHOLE LANGUAGE APPROACH TO ENGLISH SKIPS SPECIFICS
Newspaper article from: Sun Publications (IL); 3/31/1999; 700+ words ; ...hands of his English teacher. English grammar is spoken about in far-off terms these...and in our own back yard rarely teach grammar as a distinct portion of the curriculum...ability to communicate? And how much does grammar matter in the grand scheme of things...

Related entries from encyclopedias, dictionaries, and thesauruses

GRAMMAR
Book article from: Concise Oxford Companion to the English Language ...Spanish grammar , the grammar of American English . The study of the grammar of a language may be...of other varieties. Grammars of English have tended...fact the prototype for grammars of all European and...languages. Thrax defined grammar as technical knowledge...
Grammar School
Encyclopedia entry from: Encyclopedia of Children and Childhood in History and Society Grammar School Grammar schools have their roots in the medieval monastic and cathedral Latin grammar schools of western and central Europe. In preparation for the priesthood, pupils in such schools acquired a facility with the Latin syllables...
grammar schools
Book article from: The Oxford Companion to British History grammar schools. In Roman times schools of grammar taught language and literature. This type of school and its...Alcuin . In 826 Pope Eugenius required bishops to ensure that grammar schools were founded in their dioceses. The term was first...
grammar
Book article from: The Columbia Encyclopedia, Sixth Edition grammar description of the...called syntax. School grammars for the speakers...approached the study of grammar through philosophy...early Greek and Latin grammars were devoted primarily...of ancient Hebrew grammar. It was not until...
DESCRIPTIVE AND PRESCRIPTIVE GRAMMAR
Book article from: Concise Oxford Companion to the English Language ...grammar. For English, such a grammar may prescribe I as in It is...were in charge . Prescriptive grammars have been criticized for not...language and usage. Traditional grammar books have often, however...linguistics to contrast descriptive grammars with GENERATIVE GRAMMARS...

Related research topics

For students and teachers!

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including:

Encyclopedia.com provides students and teachers facts, information, and biographies from verified, citable sources, including: