Adaptive grammar

An adaptive grammar is a formal grammar that explicitly provides mechanisms within the formalism to allow its own production rules to be manipulated.

Overview

John N. Shutt defines adaptive grammar as a grammatical formalism that allows rule sets (aka sets of production rules) to be explicitly manipulated within a grammar. Types of manipulation include rule addition, deletion, and modification.[1]

Early history

The first description of grammar adaptivity (though not under that name) in the literature is generally[2][3][4] taken to be in a paper by Alfonso Caracciolo di Forino published in 1963.[5] The next generally accepted reference to an adaptive formalism (extensible context-free grammars) came from Wegbreit in 1970[6] in the study of extensible programming languages, followed by the dynamic syntax of Hanford and Jones in 1973.[7]

Collaborative efforts

Until fairly recently, much of the research into the formal properties of adaptive grammars was uncoordinated between researchers, only first being summarized by Henning Christiansen in 1990[2] in response to a paper in ACM SIGPLAN Notices by Boris Burshteyn.[8] The Department of Engineering at the University of São Paulo has its Adaptive Languages and Techniques Laboratory, specifically focusing on research and practice in adaptive technologies and theory. The LTA also maintains a page naming researchers in the field.[9]

Terminology and taxonomy

While early efforts made reference to dynamic syntax[7] and extensible,[6] modifiable,[10] dynamic,[11] and adaptable[2][12] grammars, more recent usage has tended towards the use of the term adaptive (or some variant such as adaptativa,[13][14] depending on the publication language of the literature).[3] Iwai refers to her formalism as adaptive grammars,[13] but this specific use of simply adaptive grammars is not typically currently used in the literature without name qualification. Moreover, no standardization or categorization efforts have been undertaken between various researchers, although several have made efforts in this direction.[3][4]

The Shutt classification (and extensions)

Shutt categorizes adaptive grammar models into two main categories:[3][15]

  • Imperative adaptive grammars vary their rules based on a global state changing over the time of the generation of a language.
  • Declarative adaptive grammars vary their rules only over the space of the generation of a language (i.e., position in the syntax tree of the generated string).

Jackson refines Shutt's taxonomy, referring to changes over time as global and changes over space as local, and adding a hybrid time-space category:[4]

  • Time-space adaptive grammars (hybrids) vary their rules over either the time or the space (or both) of the generation of a language (and local and global operations are explicitly differentiated by the notation for such changes).

Adaptive formalisms in the literature

Adaptive formalisms may be divided into two main categories: full grammar formalisms (adaptive grammars), and adaptive machines, upon which some grammar formalisms have been based.

Adaptive grammar formalisms

The following is a list (by no means complete) of grammar formalisms that, by Shutt's definition above, are considered to be (or have been classified by their own inventors as being) adaptive grammars. They are listed in their historical order of first mention in the literature.

Extensible context-free grammars (Wegbreit)

Described in Wegbreit's doctoral dissertation in 1970,[6] an extensible context-free grammar consists of a context-free grammar whose rule set is modified according to instructions output by a finite state transducer when reading the terminal prefix during a leftmost derivation. Thus, the rule set varies over position in the generated string, but this variation ignores the hierarchical structure of the syntax tree. Extensible context-free grammars were classified by Shutt as imperative.[3]

Christiansen grammars (Christiansen)

First introduced in 1985 as Generative Grammars[16] and later more elaborated upon,[17] Christiansen grammars (apparently dubbed so by Shutt, possibly due to conflict with Chomsky generative grammars) are an adaptive extension of attribute grammars. Christiansen grammars were classified by Shutt as declarative.[3]

The redoubling language is demonstrated as follows:[17]

<program↓G>       →   <dcl↓Gw> <body↓{w-rule}>
where w-rule  =
<body↓G’>         →   w
<dcl↓Gchw>     →   <char↓Gch> <dcl↓Gw>
<dcl↓G↑<>>       →   <ε>
<char↓G↑a>       →   a

Bottom-up modifiable grammars, top-down modifiable grammars, and USSA (Burshteyn)

First introduced in May 1990[8] and later expanded upon in December 1990,[10] modifiable grammars explicitly provide a mechanism for the addition and deletion of rules during a parse. In response to the ACM SIGPLAN Notices responses, Burshteyn later modified his formalism and introduced his adaptive Universal Syntax and Semantics Analyzer (USSA) in 1992.[18] These formalisms were classified by Shutt as imperative.[3]

Recursive adaptive grammars (Shutt)

Introduced in 1993, Recursive Adaptive Grammars (RAGs) were an attempt to introduce a Turing powerful formalism that maintained much of the elegance of context-free grammars.[3] Shutt self-classifies RAGs as being a declarative formalism.

Dynamic grammars (Boullier)

Boullier's dynamic grammars, introduced in 1994,[11] appear to be the first adaptive grammar family of grammars to rigorously introduce the notion of a time continuum of a parse as part of the notation of the grammar formalism itself.[4] Dynamic grammars are a sequence of grammars, with each grammar Gi differing in some way from other grammars in the sequence, over time. Boullier's main paper on dynamic grammars also defines a dynamic parser, the machine that effects a parse against these grammars, and shows examples of how his formalism can handle such things as type checking, extensible languages, polymorphism, and other constructs typically considered to be in the semantic domain of programming language translation.

Adaptive grammars (Iwai)

The work of Iwai in 2000[13] takes the adaptive automata of Neto[19] further by applying adaptive automata to context-sensitive grammars. Iwai's adaptive grammars (note the qualifier by name) allow for three operations during a parse: ? query (similar in some respects to a syntactic predicate, but tied to inspection of rules from which modifications are chosen), + addition, and - deletion (which it shares with its predecessor adaptive automata).

§-calculus (Jackson)

Introduced in 2000[20] and most fully discussed in 2006,[4] the §-Calculus (§ here pronounced meta-ess) allows for the explicit addition, deletion, and modification of productions within a grammar, as well as providing for syntactic predicates. This formalism is self-classified by its creator as both imperative and adaptive, or, more specifically, as a time-space adaptive grammar formalism, and was further classified by others as being an analytic formalism.[14][21]

The redoubling language is demonstrated as follows:

grammar ww {
 S ::= #phi(A.X<-"") R;
 R ::= $C('[ab]') #phi(A.X<-A.X C) #phi(N<=A.X) N | R;
};

(Note on notation: In the above example, the #phi(...) statements identify the points in the production R that modify the grammar explicitly. #phi(A.X<-A.X C) represents a global modification (over time) and the #phi(N<=A.X) statement identifies a local modification (over space). The #phi(A.X<-"") statement in the S production effectively declares a global production called A.X by placing the empty string into that production before its reference by R.)

Adaptive devices (Neto & Pistori)

First described by Neto in 2001,[22] adaptive devices were later enhanced and expanded upon by Pistori in 2003.[23]

Adapser (Carmi)

In 2002,[24] Adam Carmi introduced an LALR(1)-based adaptive grammar formalism known as Adapser. Specifics of the formalism do not appear to have been released.

Adaptive CFGs with appearance checking (Bravo)

In 2004,[14] César Bravo introduced the notion of merging the concept of appearance checking[25] with adaptive context-free grammars, a restricted form of Iwai's adaptive grammars,[13] showing these new grammars, called Adaptive CFGs with Appearance Checking to be Turing powerful.

Adaptive machine formalisms

The formalisms listed below, while not grammar formalisms, either serve as the basis of full grammar formalisms, or are included here because they are adaptive in nature. They are listed in their historical order of first mention in the literature.

Self-modifying finite state automata (Shutt & Rubinstein)
Introduced in 1994 by Shutt and Rubinstein,[26] Self-Modifying Finite State Automata (SMFAs) are shown to be, in a restricted form, Turing powerful.
Adaptive automata (Neto)
In 1994,[19] Neto introduced the machine he called a structured pushdown automaton, the core of adaptive automata theory as pursued by Iwai,[13] Pistori,[23] Bravo[14] and others. This formalism allows for the operations of inspection (similar to syntactic predicates, as noted above relating to Iwai's adaptive grammars), addition, and deletion of rules.

See also

References

  1. ^ Shutt, John N. "What is an Adaptive Grammar?". Retrieved 6 February 2019.
  2. ^ a b c Christiansen, Henning, "A Survey of Adaptable Grammars," ACM SIGPLAN Notices, Vol. 25 No. 11, pp. 35-44, Nov. 1990.
  3. ^ a b c d e f g h Shutt, John N., Recursive Adaptable Grammars, Master’s Thesis, Worcester Polytechnic Institute, 1993. (16 December 2003 emended revision.)
  4. ^ a b c d e Jackson, Quinn Tyler, Adapting to Babel: Adaptivity and Context-Sensitivity in Parsing, Ibis Publications, Plymouth, Massachusetts, March 2006.
  5. ^ Caracciolo di Forino, Alfonso, "Some Remarks on the Syntax of Symbolic Programming Languages," Communications of the ACM, Vol. 6, No. 8., pp. 456-460, August 1963.
  6. ^ a b c Wegbreit, Ben, Studies in Extensible Programming Languages[dead link], ESD-TR-70-297, Harvard University, Cambridge, Massachusetts, May 1970. In book form, Garland Publishing, Inc., New York, 1980.
  7. ^ a b Hanford, K.V. & Jones, C.B., "Dynamic Syntax: A Concept for the Definition of the Syntax of Programming Languages," Annual Review in Automatic Programming 7, Pergamon Press, Oxford, pp. 115-142, 1973.
  8. ^ a b Burshteyn, Boris. "On the Modification of the Formal Grammar at Parse Time", ACM SIGPLAN Notices, Vol. 25 No. 5, pp. 117-123, May 1990.
  9. ^ http://www.pcs.usp.br/~lta/union/index.php?cp=4&categoria=28 [dead link]
  10. ^ a b Burshteyn, Boris, "Generation and Recognition of Formal Languages by Modifiable Grammars," ACM SIGPLAN Notices, Vol. 25 No. 12, pp. 45-53, December 1990.
  11. ^ a b Boullier, Pierre, "Dynamic Grammars and Semantic Analysis," INRIA Research Report No. 2322, August 1994.
  12. ^ John Shutt originally called his Recursive Adaptive Grammars by the name Recursive Adaptable Grammars, and notes his change to adaptive at this URL: John Shutt's MS Thesis.
  13. ^ a b c d e Iwai, Margarete Keiko, Um formalismo gramatical adaptativo para linguagens dependentes de contexto, Doctoral thesis, Department of Engineering, University of São Paulo, Brazil, January 2000.
  14. ^ a b c d Bravo, César, Grámmaticas Livres de Contexto Adaptativas com verificação de aparência, Doctoral thesis, Department of Electrical Engineering, University of São Paulo, January 2004.
  15. ^ Shutt, John N., "Imperative Adaptive Grammars" Web page dated 28 March 2001, at the URL: http://web.cs.wpi.edu/~jshutt/adapt/imperative.html
  16. ^ Christiansen, Henning, "Syntax, Semantics, and Implementation Strategies for Programming Languages with Powerful Abstraction Mechanisms," Proceedings of the 18th Hawaii International Conference on System Sciences, Vol. 2, pp. 57-66, 1985.
  17. ^ a b Christiansen, Henning, "The Syntax and Semantics of Extensible Languages," Datalogiske skrifter 14, Roskilde University, 1988.
  18. ^ Burshteyn, Boris, "USSA–Universal Syntax and Semantics Analyzer," ACM SIGPLAN Notices, Vol. 27 No. 1, pp. 42-60, January 1992.
  19. ^ a b Neto, João Jose, "Adaptive Automata for Context-Sensitive Languages," ACM SIGPLAN Notices, Vol. 29 No. 9, pp. 115-124, September 1994.
  20. ^ Jackson, Quinn Tyler, "Adaptive Predicates in Natural Language Parsing," Perfection, Vol. 1 No. 4, April 2000.
  21. ^ Okhotin, Alexander, Boolean Grammars: Expressive Power and Algorithms, Doctoral thesis, School of Computing, Queens University, Kingston, Ontario, August 2004.
  22. ^ Neto, João Jose, "Adaptive Rule-Driven Devices: General Formulation and Case Study[permanent dead link]," B. W. Watson, D. Wood (Eds.): Implementation and Application of Automata 6th International Conference, CIAA 2001, Lecture Notes in Computer Science, Vol. 2494, Pretoria, South Africa, Springer-Verlag, pp. 234–250, 23–25 July 2001.
  23. ^ a b Pistori, Hemerson, Tecnologia Adaptativa em Engenharia de Computação: Estado da Arte e Aplicações, Doctoral thesis, Department of Electrical Engineering, University of São Paulo, 2003.
  24. ^ Carmi, Adam, "Adapser: An LALR(1) Adaptive Parser[permanent dead link]," The Israeli Workshop on Programming Languages & Development Environments, Haifa, Israel, 1 July 2002.
  25. ^ Salomaa, Arto, Formal Languages, Academic Press, 1973.
  26. ^ Shutt, John & Rubinstein, Roy, "Self-Modifying Finite Automata," in B. Pehrson and I. Simon, editors, Technology and Foundations: Information Processing '94 Vol. I: Proceedings of 13th IFIP World Computer Congress, Amsterdam: North-Holland, pp. 493-498, 1994. (archive)

Read other articles:

GhanchakkarPoster perilisan teatrikalSutradaraRajkumar GuptaProduserRonnie ScrewvalaSiddharth Roy KapurSkenarioParveez ShaikhRajkumar GuptaPemeranEmraan HashmiVidya BalanRajesh SharmaNamit DasPenata musikAmit TrivediSinematograferSetu (Satyajit Pande)PenyuntingAarti BajajDistributorUTV Motion PicturesTanggal rilis 28 Juni 2013 (2013-06-28) Durasi137 men.NegaraIndiaBahasaHindiAnggaran₹290 juta (US$4,1 juta)Pendapatankotor₹380 juta (US$5,3 juta)Ghanchakkar (terj. ...

 

L'appellation roi d'Irlande (en irlandais « Ri na hÉireann ») a été utilisée pendant trois périodes distinctes de l'histoire de l'Irlande. Pendant les siècles qui précédèrent 1169, l'Irlande était vraisemblablement en train de devenir un royaume régi par un haut-roi d'Irlande. À la suite de l'incursion cambro-normande de 1169 en Irlande, Henri II d'Angleterre et ses successeurs devinrent « seigneurs d'Irlande ». Le traité de Windsor de 1175 reconnut comme ...

 

Sorkam BaratKecamatanPeta lokasi Kecamatan Sorkam BaratNegara IndonesiaProvinsiSumatera UtaraKabupatenTapanuli TengahPemerintahan • CamatRosniati Samosir, SEPopulasi (2020) • Total17.822 jiwaKode Kemendagri12.01.10 Kode BPS1204061 Luas44,58 km²Desa/kelurahan10 Desa2 Kelurahan Sorkam Barat adalah sebuah kecamatan di Kabupaten Tapanuli Tengah, Sumatera Utara, Indonesia. Ibu kota kecamatan ini berada di kelurahan Sorkam Kanan. Dari 12 wilayah kelurahan/desa di ...

Penyuling tembaga leher angsa di tempat penyulingan Glenfiddich yang memproduksi wiski. Penyuling atau dalam bahasa Inggris disebut Still dalam teknik kimia adalah alat yang digunakan untuk mendistilasi campuran cairan dengan memanaskannya hingga mendidih secara selektif dan kemudian cairan mendingin guna mengembunkan uap.[1] Penyuling menggunakan konsep yang sama dengan alat distilasi dasar, tetapi dalam skala yang jauh lebih besar. Still telah digunakan untuk memproduksi parfum dan ...

 

Design of the content and rules of video games Part of a series on theVideo game industry Development Producer Developer Designer Artist Programmer Design Level design Programming Engine AI Graphics Music Testing Products Video game Specialized / alternative-paradigmatic types: Casual Erotic Indie Interactive movie Nonviolent Serious Art game Edugame Exergame Non-game Arcade cabinet Console Accessory Publishing Markets China U.S. Japan South Korea Localization Censorship Content rating Piracy...

 

Menurut Kitab Kejadian, Bani Ismail (Ibrani: Bnai Yishma'el Arab: Bani Isma'il, ) adalah para keturunan Isma'il, putra sulung Ibrahim dan keturunan dari dua belas putra dan pangeran Ismail. Sepanjang sejarah, bani Ismail diasosiasikan dengan bangsa Arab (khususnya bangsa Arab Utara). Sehingga, dua suku Arab Utara, Kedar dan Nabatea, menisbatkan nama dua putra Ismael dalam silsilah mereka. Putra-putri Ismail Nebayot/Nabith Kedar/Qaidar Adbeel Mibsam Misyma Mahalat/Basmat (perempuan) Duma Masa ...

The list of shipwrecks in October 1944 includes ships sunk, foundered, grounded, or otherwise lost during October 1944. This is a dynamic list and may never be able to satisfy particular standards for completeness. You can help by adding missing items with reliable sources. October 1944 MonTueWedThuFriSatSun 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Unknown date References 1 October List of shipwrecks: 1 October 1944 Ship State Description Ajiro ...

 

Le transport de marchandises dangereuses (TMD) peut s'effectuer par voie routière, ferrée, maritime, fluviale ou aérienne. Il est régi par des accords internationaux mais également par des spécificités nationales qui en fixent les règles. Par « marchandise », on entend aussi bien les matières (produits chimiques, carburant, peintures, acides, etc.) que les matériels (munitions, airbags, extincteurs, piles au lithium, etc.). Le transport par pipeline ne fait pas...

 

Süper Lig 2018-2019 Competizione Süper Lig Sport Calcio Edizione 61ª Organizzatore TFF Date dal 10 agosto 2018al 26 maggio 2019 Luogo  Turchia Partecipanti 18 Formula Girone all'italiana Risultati Vincitore Galatasaray(22º titolo) Retrocessioni BursasporErzurum BBAkhisar Belediyespor Statistiche Miglior marcatore Mbaye Diagne (30) Incontri disputati 306 Gol segnati 821 (2,68 per incontro) Cronologia della competizione 2017-2018 2019-2020 Manuale La Süper Lig 2018-...

German World War II submarine For other ships with the same name, see German submarine U-68. U-505, a typical Type IXC boat History Nazi Germany NameU-68 Ordered7 August 1939 BuilderDeSchiMAG AG Weser, Bremen Yard number987 Laid down20 April 1940 Launched22 October 1940 Commissioned11 February 1941 FateSunk 10 April 1944 north-west of Madeira, Portugal. 56 dead and 1 survivor[1] General characteristics Class and typeType IXC submarine Displacement 1,120 t (1,100 long tons) surfac...

 

Coup d'état by the Free Officers Movement 1969 Libyan revolutionPart of the Arab Cold WarGaddafi at an Arab summit in Libya, shortly after the September Revolution that toppled King Idris. Gaddafi sits in military uniform in the middle, surrounded by Egyptian President Gamal Abdel Nasser (left) and Syrian President Nureddin al-Atassi (right)Date1 September 1969LocationLibyaResult Free Officers victory Overthrow and abolition of the Monarchy Establishment of Libyan Arab Republic Start of Muam...

 

Marvel Comics fictional character For the Marvel Cinematic Universe character, see Loki (Marvel Cinematic Universe). Comics character LokiVarious incarnations of Loki as depicted in Loki: Agent of Asgard #8 (November 2014). Art by Lee Garbett.Publication informationPublisherMarvel ComicsFirst appearance Venus #6(August 1949) (Golden Age) Journey into Mystery #85[1][2](October 1962) (Silver Age) Created by Stan Lee Larry Lieber Jack Kirby In-story informationFull nameLoki Laufe...

Голубянки Самец голубянки икар Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ПервичноротыеБез ранга:ЛиняющиеБез ранга:PanarthropodaТип:ЧленистоногиеПодтип:ТрахейнодышащиеНадкласс:ШестиногиеКласс...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Tamil Nadu Civil Service – news · newspapers · books · scholar · JSTOR (September 2019) (Learn how and when to remove this message) Tamil Nadu Administrative Serviceதமிழ்நாடு நிர்வாக சேவைTamil Nadu logoAgency overviewForm...

 

Universitas Hang TuahDidirikan12 Mei 1987RektorLaksamana Muda TNI (Purn) Prof. Dr. Ir. Supartono, MM., CIQaRAlamatJalan Arief Rachman Hakim No. 150 Sukolilo, Surabaya, Jawa Timur, Indonesia KampusPerguruan Tinggi SwastaNama julukanUHTSitus webhangtuah.ac.id Universitas Hang Tuah biasa disingkat sebagai UHT adalah sebuah perguruan tinggi swasta di Kota Surabaya yang berada di bawah naungan Yayasan Nala TNI Angkatan Laut. Sejarah Didorong oleh cinta tanah air dan tanggungjawab terhadap kehidupa...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: St. Paul's Cathedral Fond du Lac, Wisconsin – news · newspapers · books · scholar · JSTOR (June 2019) (Learn how and when to remove this message) St. Paul's Cathedral in 2013 St. Paul's Cathedral is the mother church of the Episcopal Diocese of Fond du Lac...

 

Pakistani martial artist This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) The topic of this article may not meet Wikipedia's notability guideline for biographies. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, th...

 

Hillfort in County Donegal, Ireland This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Grianan of Aileach – news · newspapers · books · scholar · JSTOR (December 2021) (Learn how and when to remove this message) Grianán of AileachGrianán Ailigh (Irish)Grianán of AileachThe Grianan of Aileach is in the R...

Chevrolet Express/GMC SavanaInformasiProdusenGeneral MotorsMasa produksi1996–sekarangBodi & rangkaBentuk kerangkavanKronologiPendahuluChevrolet Van / BeauvilleGMC Vandura / Rally Chevrolet Express dan kembaran identiknya GMC Savana adalah van full size yang diproduksi General Motors. Kendaraan ini menggantikan Chevrolet Van dan GMC Vandura tahu 1996. Express dan Savana saat ini memegang posisi kedua di pasar Amerika Serikat, di belakang Ford E-Series. Galeri 1996-2002 GMC Savana 35...

 

Queen Street, one of the major roads in Brisbane, after the 1893 floods. Residents are seen rowing boats to move about due to the flooding. South Brisbane during the 1893 flood. Map from the Irrigation and Water Supply Commission. Albert Bridge The 1893 Brisbane flood, occasionally referred to as the Great Flood of 1893 or the Black February flood, occurred in 1893 in Brisbane, Queensland, Australia. The Brisbane River burst its banks on three occasions in February 1893. It was the occurrenc...