On the Transformational Derivation of an Efficient Recognizer for Algol 68

Total Page:16

File Type:pdf, Size:1020Kb

On the Transformational Derivation of an Efficient Recognizer for Algol 68 On the Transformational Derivation of an Efficient Recognizer for Algol 68 Caspar Derksen [email protected] August 1995 Masters Thesis no. 357 Catholic University of Nijmegen Preface This work is the result of my graduation project at the Catholic University of Nijmegen. It has been supervised by Prof. C.H.A. Koster. I should like to thank my parents, Donald, Cindy, Walter, Joyce, Berry, and others for their friendship and support while I was working on this thesis. Thanks go to Paula, Marco, Erik and others for enlightening life at the office during work. Special thanks go to Prof. C.H.A. Koster for awakening my interest in two level grammars and for his support and invaluable advice and patience. Caspar Derksen Nijmegen, August 1995 i ii Abstract During the sixties two level van Wijngaarden grammars (2vwg) were introduced for the formal definition of Algol 68. Two level van Wijngaarden grammars provide a formalism suited for writing rigorous formal definitions which read like human prose. Both the context free and context sensitive syntax of Algol 68 are defined in 2vwg. However, the specification is not executable. The Extended Affix Grammar (eag) formalism is closely related to 2vwg. Any 2vwg can be simulated in eag. From a given eag an exact recognizer for the language defined by the eag can be derived automatically. Termination of such a recognizer is guaranteed if certain liberal well-formedness conditions are satisfied. However, in general some effort is necessary to enforce well-formedness. cdl3 is a programming language which rides the borderline between affix grammars and programs. It can be seen as a deterministic version of eag. From a grammar in cdl3 efficient parsers can be generated. Specifications in 2vwg and eag often are of a declarative nature. Our purpose is to derive efficient parsers from such a language specification in a transformational way. We have gen- eralized well known transformations techniques for making context free grammars top down parsable to two level grammars. Furthermore, we have defined transformations for applying the well-known unfold/rearrange/fold-technique on specifications which are formulated as a two level grammar. These transformations can be used for imposing stronger well-formedness conditions on a two level grammar and for operationalizing declarative constructs in the grammar. As a case study, we have undertaken an attempt to derive a new specification for Algol 68 in eag by applying language preserving transformations to the original grammar. Secondly, we have tried to make the resulting eag deterministic in order to obtain an efficient recognizer in cdl3. iii iv Contents Preface i Abstract iii 1 Introduction 1 1.1 The Problem . 1 1.2 Aims of the Present Work . 2 1.3 Outline of the Thesis . 2 2 Two Level Grammars 3 2.1 Two Level van Wijngaarden Grammars . 3 2.1.1 Formal Definition . 3 2.1.2 Properties of 2VWG . 8 2.1.3 Hyper-derivations and Conjugations . 9 2.1.4 Conjugation Grammars . 10 2.1.5 Transparent Two Level Grammars . 11 2.2 Extended Affix Grammars . 12 2.2.1 Formal Definition of EAG . 12 2.2.2 Properties of EAG . 15 2.2.3 Implementation . 16 2.3 CDL3 . 18 2.3.1 Formal Definition . 18 2.3.2 Properties of CDL3 . 25 2.4 Conclusions . 26 v vi CONTENTS 3 Transformations on Two Level Grammars 27 3.1 Semantical Foundations . 27 3.1.1 Equivalence of Grammars . 27 3.1.2 Equivalence of Rules . 28 3.1.3 Equivalence of Hypernotions . 28 3.2 Notational Conventions . 28 3.2.1 Notation of Transformation rules . 29 3.2.2 Notation of Derivations . 29 3.3 Basic Transformation Rules . 29 3.3.1 General Transformations . 29 3.3.2 Folding and Unfolding . 30 3.3.3 Rule Introduction and Pruning . 35 3.3.4 Predicate Introduction and Removal . 37 3.3.5 Left-factorization . 38 3.3.6 Left-recursion Removal . 40 3.3.7 Restriction . 42 3.3.8 Invariant Introduction and Removal . 43 3.3.9 Lifting and Sinking . 43 3.3.10 Embedding . 43 3.3.11 Change Order . 44 3.3.12 Symbolic Evaluation . 44 3.3.13 Renaming . 44 3.3.14 Transformation of the Metagrammar . 45 3.4 Further Transformation Rules . 46 3.4.1 Transformations using Equality Tests . 46 3.4.2 Transformations on Lists . 46 3.5 Sample Developments . 47 3.5.1 Concatenation of Lists . 47 3.5.2 Splitting of Lists . 49 3.5.3 Ravelling of Moods . 50 3.6 Conclusions . 51 CONTENTS vii 4 An Extended Affix Grammar for Algol 68 53 4.1 Imaging 2VWG into EAG . 53 4.1.1 Strategy . 55 4.2 Deriving an EAG for Algol68 . 55 4.2.1 Overview of the process . 55 4.2.2 Separation of the First and Second Level . 56 4.2.3 From Relations to Functions . 59 4.2.4 From Flat Domains to Tree Structures . 59 4.2.5 Left-recursion Removal . 62 4.2.6 Optimizations . 62 4.2.7 Sample Derivations . 64 4.2.8 On the Terminal Objects of Algol 68 . 72 4.2.9 Implementation Status . 74 4.3 Practical Usability of eag-compile . 75 4.3.1 Compiling and Debugging . 75 4.3.2 The Typing System . 75 4.3.3 An Experiment . 76 4.3.4 Reliability of eag-compile . 79 4.4 Conclusions . 79 4.4.1 Conclusions about Transformation of Two Level Grammars . 79 4.4.2 Conclusions about the EAG Formalism . 80 4.4.3 Conclusions about eag-compile . 80 5 Towards a Parser for Algol 68 in CDL3 81 5.1 Imaging EAG into CDL3 . 81 5.1.1 Strategy . 82 5.1.2 Typing the Hyper-rules . 82 5.1.3 Rule Ordering and Algorithm Classification . 82 5.1.4 Example . 83 5.2 Additional Transformations . 84 5.2.1 Decomposition of Grammars . 84 5.2.2 Place-Holders . 84 viii CONTENTS 5.3 Deriving a Parser for Algol 68 in CDL3 . 86 5.3.1 Lexical Analysis . 86 5.3.2 The Pre-Scan . 88 5.3.3 Context Free Analysis . 89 5.3.4 Imposing Two Pass Affix Evaluation . 92 5.3.5 Context Sensitive Analysis . 93 5.4 Overview of the Parser . 97 5.4.1 Module Structure . 97 5.4.2 Implementation Status . 97 5.4.3 Size of the Parser . 97 5.5 Practical Usability of CDL3 . 98 5.6 Conclusions . 98 5.6.1 Future Work . 99 6 Conclusions 101 6.1 Two Level Grammars . 101 6.2 Transformation of Two level Grammars . 101 6.2.1 Extended Affix Grammars . 102 6.2.2 CDL3 . 102 6.2.3 Future Work . 102 Bibliography 103 Index 106 Chapter 1 Introduction In this chapter, the goal of this thesis and the questions addressed in it are explained. Fur- thermore, an outline of the thesis is given. The reader of this thesis is advised to have read the Revised Report on the Algorithmic Language Algol 68 [Wij76] and to be familiar with context free grammars and their properties. 1.1 The Problem During the sixties and early seventies various forms of two level grammars were introduced. In a two level grammar, both context free and context sensitive syntax of a language, as well as its semantics, can be described. One notable example is the grammar of Algol 68..
Recommended publications
  • Evidence and Counter-Evidence : Essays in Honour of Frederik
    Evidence and Counter-Evidence Studies in Slavic and General Linguistics Series Editors: Peter Houtzagers · Janneke Kalsbeek · Jos Schaeken Editorial Advisory Board: R. Alexander (Berkeley) · A.A. Barentsen (Amsterdam) B. Comrie (Leipzig) - B.M. Groen (Amsterdam) · W. Lehfeldt (Göttingen) G. Spieß (Cottbus) - R. Sprenger (Amsterdam) · W.R. Vermeer (Leiden) Amsterdam - New York, NY 2008 Studies in Slavic and General Linguistics, vol. 32 Evidence and Counter-Evidence Essays in honour of Frederik Kortlandt Volume 1: Balto-Slavic and Indo-European Linguistics edited by Alexander Lubotsky Jos Schaeken Jeroen Wiedenhof with the assistance of Rick Derksen and Sjoerd Siebinga Cover illustration: The Old Prussian Basel Epigram (1369) © The University of Basel. The paper on which this book is printed meets the requirements of “ISO 9706: 1994, Information and documentation - Paper for documents - Requirements for permanence”. ISBN: set (volume 1-2): 978-90-420-2469-4 ISBN: 978-90-420-2470-0 ©Editions Rodopi B.V., Amsterdam - New York, NY 2008 Printed in The Netherlands CONTENTS The editors PREFACE 1 LIST OF PUBLICATIONS BY FREDERIK KORTLANDT 3 ɽˏ˫˜ˈ˧ ɿˈ˫ː˧ˮˬː˧ ʡ ʤʡʢʡʤʦɿʄʔʦʊʝʸʟʡʞ ʔʒʩʱʊʟʔʔ ʡʅʣɿʟʔʱʔʦʊʝʸʟʷʮ ʄʣʊʞʊʟʟʷʮ ʤʡʻʒʡʄ ʤʝɿʄʼʟʤʘʔʮ ʼʒʷʘʡʄ 23 Robert S.P. Beekes PALATALIZED CONSONANTS IN PRE-GREEK 45 Uwe Bläsing TALYSCHI RöZ ‘SPUR’ UND VERWANDTE: EIN BEITRAG ZUR IRANISCHEN WORTFORSCHUNG 57 Václav Blažek CELTIC ‘SMITH’ AND HIS COLLEAGUES 67 Johnny Cheung THE OSSETIC CASE SYSTEM REVISITED 87 Bardhyl Demiraj ALB. RRUSH, ON RAGUSA UND GR. ͽΚ̨ 107 Rick Derksen QUANTITY PATTERNS IN THE UPPER SORBIAN NOUN 121 George E. Dunkel LUVIAN -TAR AND HOMERIC ̭ш ̸̫ 137 José L. García Ramón ERERBTES UND ERSATZKONTINUANTEN BEI DER REKON- STRUKTION VON INDOGERMANISCHEN KONSTRUKTIONS- MUSTERN: IDG.
    [Show full text]
  • Fundamental Methodological Issues of Syntactic Pattern Recognition
    Pattern Anal Applic (2014) 17:465–480 DOI 10.1007/s10044-013-0322-1 ORIGINAL ARTICLE Fundamental methodological issues of syntactic pattern recognition Mariusz Flasin´ski • Janusz Jurek Received: 22 February 2012 / Accepted: 30 January 2013 / Published online: 9 March 2013 Ó The Author(s) 2013. This article is published with open access at Springerlink.com Abstract Fundamental open problems, which are fron- Syntactic pattern recognition prevails over ‘‘standard’’ tiers of syntactic pattern recognition are discussed in the pattern recognition approaches (probabilistic, discriminant paper. Methodological considerations on crucial issues in function-based, NN, etc.) when patterns considered can be areas of string and graph grammar-based syntactic methods characterized better with structural features than vectors of are made. As a result, recommendations concerning an features. What is more, using this approach not only can we enhancement of context-free grammars as well as con- make a classification (in a sense of ascribing a pattern to a structing parsable and inducible classes of graph grammars pre-defined category), but also a (structural) interpretation are formulated. of an unknown pattern. Therefore, for structurally-oriented recognition problems such as: character recognition, speech Keyword Syntactic pattern recognition Á recognition, scene analysis, chemical and biological struc- Formal language Á Graph grammar tures analysis, texture analysis, fingerprint recognition, geophysics, a syntactic approach has been applied suc- cessfully since its beginning in the early 1960s for the next 1 Introduction two decades. A rapid development of syntactic methods has slowed down since 1990s and the experts in this area (see Representing a pattern as a structure of the form of string, e.g.
    [Show full text]
  • Lecture 5 Mildly Context-Sensitive Languages
    Lecture 5 Mildly Context-Sensitive Languages Last modified 2016/07/08 Multiple context-free grammars In the previous lecture, we proved the equivalence between TAG and LIG. In fact, there is yet another grammar formalism, namely the head grammar, that is equivalent to these two formalisms. A head grammar is a special kind of multiple context-free grammar (MCFG), so we introduce the latter formalism first. The MCFG is a natural generalization of the “bottom-up” view of the CFG. The standard, “top-down” view of the CFG takes a rule A X ::: X ! 1 n as a permission to rewrite A into X1 ::: Xn. In contrast, the bottom-up view of the CFG interprets the same rule not as a rewriting instruction, but as an implication, which says: A ∗ x ::: x if X ∗ x X ∗ x : ) 1 n 1 ) 1 ^ · · · ^ n ) n In fact, to define the language L(G) = w Σ S w of a CFG G, there is no f 2 ∗ j )∗ g need to define the derivation relation which holds between strings of terminals )∗ and nonterminals. All you need is an inductive definition of the subrelation of this relation that holds between single nonterminals and strings of terminals: ∗ (N Σ ∗): ) \ × To express that nonterminal A and terminal string x stand in this relation (i.e., A x), we may write A(x), treating nonterminal A as a unary predicate on )∗ 5–1 terminal strings. Then the bottom-up interpretation of the CFG rule can be written in the form of a Horn clause: A(x ::: x ) X (x );:::; X (x ): 1 n 1 1 n n A context-free grammar now becomes a Horn clause program consisting of rules of the above form.
    [Show full text]
  • International Standard ISO/IEC 14977
    ISO/IEC 14977 : 1996(E) Contents Page Foreword ................................................ iii Introduction .............................................. iv 1Scope:::::::::::::::::::::::::::::::::::::::::::::: 1 2 Normative references :::::::::::::::::::::::::::::::::: 1 3 Definitions :::::::::::::::::::::::::::::::::::::::::: 1 4 The form of each syntactic element of Extended BNF :::::::::: 1 4.1 General........................................... 2 4.2 Syntax............................................ 2 4.3 Syntax-rule........................................ 2 4.4 Definitions-list...................................... 2 4.5 Single-definition . 2 4.6 Syntactic-term...................................... 2 4.7 Syntacticexception.................................. 2 4.8 Syntactic-factor..................................... 2 4.9 Integer............................................ 2 4.10 Syntactic-primary.................................... 2 4.11 Optional-sequence................................... 3 4.12 Repeatedsequence................................... 3 4.13 Grouped sequence . 3 4.14 Meta-identifier...................................... 3 4.15 Meta-identifier-character............................... 3 4.16 Terminal-string...................................... 3 4.17 First-terminal-character................................ 3 4.18 Second-terminal-character . 3 4.19 Special-sequence.................................... 3 4.20 Special-sequence-character............................. 3 4.21 Empty-sequence....................................
    [Show full text]
  • The Linguistic Relevance of Tree Adjoining Grammar
    University of Pennsylvania ScholarlyCommons Technical Reports (CIS) Department of Computer & Information Science April 1985 The Linguistic Relevance of Tree Adjoining Grammar Anthony S. Kroch University of Pennsylvania Aravind K. Joshi University of Pennsylvania, [email protected] Follow this and additional works at: https://repository.upenn.edu/cis_reports Recommended Citation Anthony S. Kroch and Aravind K. Joshi, "The Linguistic Relevance of Tree Adjoining Grammar", . April 1985. University of Pennsylvania Department of Computer and Information Science Technical Report No. MS-CIS-85-16. This paper is posted at ScholarlyCommons. https://repository.upenn.edu/cis_reports/671 For more information, please contact [email protected]. The Linguistic Relevance of Tree Adjoining Grammar Abstract In this paper we apply a new notation for the writing of natural language grammars to some classical problems in the description of English. The formalism is the Tree Adjoining Grammar (TAG) of Joshi, Levy and Takahashi 1975, which was studied, initially only for its mathematical properties but which now turns out to be a interesting candidate for the proper notation of meta-grammar; that is for the universal grammar of contemporary linguistics. Interest in the application of the TAG formalism to the writing of natural language grammars arises out of recent work on the possibility of writing grammars for natural languages in a metatheory of restricted generative capacity (for example, Gazdar 1982 and Gazdar et al. 1985). There have been also several recent attempts to examine the linguistic metatheory of restricted grammatical formalisms, in particular, context-free grammars. The inadequacies of context-free grammars have been discussed both from the point of view of strong generative capacity (Bresnan et al.
    [Show full text]
  • Algorithm for Analysis and Translation of Sentence Phrases
    Masaryk University Faculty}w¡¢£¤¥¦§¨ of Informatics!"#$%&'()+,-./012345<yA| Algorithm for Analysis and Translation of Sentence Phrases Bachelor’s thesis Roman Lacko Brno, 2014 Declaration Hereby I declare, that this paper is my original authorial work, which I have worked out by my own. All sources, references and literature used or excerpted during elaboration of this work are properly cited and listed in complete reference to the due source. Roman Lacko Advisor: RNDr. David Sehnal ii Acknowledgement I would like to thank my family and friends for their support. Special thanks go to my supervisor, RNDr. David Sehnal, for his attitude and advice, which was of invaluable help while writing this thesis; and my friend František Silváši for his help with the revision of this text. iii Abstract This thesis proposes a library with an algorithm capable of translating objects described by natural language phrases into their formal representations in an object model. The solution is not restricted by a specific language nor target model. It features a bottom-up chart parser capable of parsing any context-free grammar. Final translation of parse trees is carried out by the interpreter that uses rewrite rules provided by the target application. These rules can be extended by custom actions, which increases the usability of the library. This functionality is demonstrated by an additional application that translates description of motifs in English to objects of the MotiveQuery language. iv Keywords Natural language, syntax analysis, chart parsing,
    [Show full text]
  • Surface Without Structure Word Order and Tractability Issues in Natural Language Analysis
    Surface without Structure word order and tractability issues in natural language analysis ..., daß Frank Julia Fred schwimmen helfen sah ...that Frank saw Julia help Fred swim ...dat Frank Julia Fred zag helpen zwemmen Annius Groenink Surface without Structure Word order and tractability issues in natural language analysis Oppervlakte zonder Structuur Woordvolgorde en computationele uitvoerbaarheid in natuurlijke- taalanalyse (met een samenvatting in het Nederlands) Proefschrift ter verkrijging van de graad van doctor aan de Universiteit Utrecht, op gezag van de Rector Magnificus, Prof. dr H.O. Voorma ingevolge het besluit van het College van Decanen in het openbaar te verdedigen op vrijdag 7 november 1997 des middags te 16.15 uur door Annius Victor Groenink geboren op 29 december 1971 te Twello (Voorst) Promotoren: Prof. dr D.J.N. van Eijck Onderzoeksinstituut voor Taal en Spraak Universiteit Utrecht Centrum voor Wiskunde en Informatica Prof. dr W.C. Rounds Deptartment of Electrical Engineering and Computer Science University of Michigan The research for this thesis was funded by the Stichting Informatica-Onderzoek Ned- erland (SION) of the Dutch national foundation for academic research NWO, un- der project no. 612-317-420: incremental parser generation and context-sensitive disambiguation: a multidisciplinary perspective, and carried out at the Centre for Mathematics and Computer Science (CWI) in Amsterdam. Copyright c 1997, Annius Groenink. All rights reserved. Printed and bound at CWI, Amsterdam; cover: focus on non-projectivity in
    [Show full text]
  • Parsing Discontinuous Structures
    wolfgang maier PARSINGDISCONTINUOUSSTRUCTURES PARSINGDISCONTINUOUSSTRUCTURES dissertation zur Erlangung des akademischen Grades Doktor der Philosophie der Philosophischen Fakultät der Eberhard Karls Universität Tübingen vorgelegt von Wolfgang Maier aus Göppingen 2013 Gedruckt mit Genehmigung der Philosophischen Fakultät der Eberhard Karls Universität Tübingen dekan: Prof. Dr. Jürgen Leonhardt hauptberichterstatter: Prof. Dr. Laura Kallmeyer, Universität Düsseldorf mitberichterstatter: Prof. Dr. Erhard Hinrichs, Universität Tübingen PD Dr. Frank Richter, Universität Tübingen tag der mündlichen prüfung: 16. Oktober 2012 TOBIAS-lib, Tübingen ABSTRACT The development of frameworks that allow to state grammars for nat- ural languages in a mathematically precise way is a core task of the field of computational linguistics. The same holds for the development of techniques for finding the syntactic structure of a sentence given a grammar, parsing. The focus of this thesis lies on data-driven parsing. In this area, one uses probabilistic grammars that are extracted from manually analyzed sentences coming from a treebank. The probabil- ity model can be used for disambiguation, i. e., for finding the best analysis of a sentence. In the last decades, enormous progress has been achieved in the do- main of data-driven parsing. Many current parsers are nevertheless still limited in an important aspect: They cannot handle discontinu- ous structures, a phenomenon which occurs especially frequently in languages with a free word order. This is due to the fact that those parsers are based on Probabilistic Context-Free Grammar (PCFG), a framework that cannot model discontinuities. In this thesis, I propose the use of Probabilistic Simple Range Con- catenation Grammar (PSRCG), a natural extension of PCFG, for data- driven parsing.
    [Show full text]
  • 17191931.Pdf
    PDF hosted at the Radboud Repository of the Radboud University Nijmegen The following full text is a publisher's version. For additional information about this publication click this link. http://hdl.handle.net/2066/113622 Please be advised that this information was generated on 2017-12-06 and may be subject to change. Description and Analysis of Static Semantics by Fixed Point Equations Description and Analysis of Static Semantics by Fixed Point Equations Een wetenschappelijke proeve op het gebied van de Wiskunde en Natuurwetenschappen Proefschrift ter verkrijging van de graad van doctor aan Katholieke Universiteit te Nijmegen, volgens besluit van college van decanen in het openbaar te verdedigen maandag 3 april 1989, des namiddags te 1.30 uur precies door Matthias Paul Gerhard Moritz geboren op 13 mei 1951 te Potsdam-Babelsberg druk: Bloembergen Santee bv, Nijmegen Promotor: Prof. C.H.A. Koster ISBN 90-9002752-1 © 1989, M. Moritz, The Netherlands I am grateful to many present and former members of the Nijmegen Informatics Department for numerous constructive dis­ cussions and for their comments on earlier drafts of this thesis. Contents Contents 1 1 Introduction 5 1.1 A Personal View 6 1.2 Description and Implementation 9 1.2.1 Syntax of Programming Languages 10 1.2.2 Semantics of Programming Languages ... 11 1.2.3 Static Semantics of Programming Languages 12 1.3 Our Aim 13 1.4 Overview 14 1.5 Related Work 15 2 Posets and Lattices 19 2.1 Partially Ordered Sets 19 2.2 Functions on Partially Ordered Sets 24 2.3 Construction of Posets 25 2.4 Lattices 29 2.5 Construction of Complete Lattices 31 2.6 Reflexive Lattices 34 1 2 CONTENTS 2.7 Functions on Lattices 35 2.8 Fixed Points 38 3 Description of Systems by Graphs 41 3.1 Graphs and Systems 42 3.1.1 Graph Schemes 42 3.1.2 Graph Structures 44 3.2 Functions on Graphs .
    [Show full text]
  • Fundamental Study
    Theoretical Computer Science 88 (1991) 191-229 191 Elsevier Fundamental Study On multiple context-free grammars * Hiroyuki Seki Department of Information and Computer Sciences, Faculty of Engineering Science, Osaka University, Toyonaka, Osaka 560. Japan Takashi Matsumura Nomura Research Institute, Ltd., Tyu-o-ku, Tokyo 104, Japan Mamoru Fujii College of General Education, Osaka University. Toyonaka. Osaka, 560, Japan Tadao Kasami Department qf Information and Computer Sciences, Faculty of Engineering Science, Osaka Universiiy, Toyonaka, Osaka 560. Japan Communicated by M. Takahashi Received July 1989 Revised January 1990 Seki, H., T. Matsumura, M. Fujii and T. Kasami, On multiple context-free grammars, Theoretical Computer Science 88 (1991) 191-229. Multiple context-free grammars (mcfg’s) is a subclass of generalized context-free grammars intro- duced by Pollard (1984) in order to describe the syntax of natural languages. The class of lan- guages generated by mcfg’s (called multiple context-free languages or, shortly, mc~?‘s) properly includes the class of context-free languages and is properly included in the class of context-sensitive languages. First, the paper presents results on the generative capacity of mcfg’s and also on the properties of mctl’s such as formal language-theoretic closure properties. Next, it is shown that the time complexity of the membership problem for multiple context-free languages is O(n’), where n is the length of an input string and e is a constant called the degree of a given mcfg. Head grammars (hg’s) introduced by Pollard and tree adjoining grammars (tag’s) introduced by Joshi et al. (1975) are also grammatical formalisms to describe the syntax of natural languages.
    [Show full text]
  • The History of the ALGOL Effort
    Technische Universiteit Eindhoven Department of Mathematics and Computer Science The History of the ALGOL Effort by HT de Beer supervisors: C. Hemerik L.M.M. Royakkers Eindhoven, August 2006 Abstract This report studies the importancy of the ALGOL effort for computer science. Therefore the history of the ALGOL effort is told, starting with the compu- tational context of the 1950s when the ALGOL effort was initiated. Second, the development from IAL to ALGOL 60 and the role the BNF played in this development are discussed. Third, the translation of ALGOL 60 and the establishment of the scientific field of translator writing are treated. Finally, the period of ALGOL 60 maintenance and the subsequent period of creating a successor to ALGOL 60 are described. ii Preface This history on the ALGOL effort was written as a Master thesis in Com- puter Science and Engineering (Technische Informatica) at the Eindhoven University of Technology, the Netherlands. iii Contents Abstract ii Preface iii Contents iv 0 Introduction 1 0.0 On the sources used ........................ 2 0.1 My own perspective ........................ 3 0.2 The ALGOL effort: a definition .................. 4 0.3 Notes ................................ 4 1 Creation 5 1.0 The start of the ALGOL effort ................... 5 1.1 The need for a universal algorithmic language ........... 7 1.1.0 The American field of computing ............. 7 1.1.1 The European field of computing ............. 9 1.1.2 The difference between Europe and the USA and the need for universalism ...................... 11 1.2 Why was IAL chosen over other algorithmic languages? ..... 11 1.2.0 IT ............................
    [Show full text]
  • Van Wijngaarden Grammars, Metamorphism and K-Ary Malwares
    Van Wijngaarden grammars, metamorphism and K-ary malwares. Gueguen Geoffroy ESIEA Laval Laboratoire de cryptologie et de virologie opérationelles (C + V )O, 38 rue des Dr Calmette et Guérin 53000 Laval, France [email protected] October 28, 2018 Abstract recognizers of a language are known. Van Wijngaarden grammars are different than the one Grammars are used to describe sentences structure, which fall in Chomsky’s classification. Their writing thanks to some sets of rules, which depends on the is particular, and above all, their production process is grammar type. A classification of grammars has been quite different than the grammars in Chomsky’s hierar- made by Noam Chomsky, which led to four well-known chy. We will see that these grammars may be used as types. Yet, there are other types of grammars, which do “code translators”. They indeed have some rules which not exactly fit in Chomsky’s classification, such as the allow them to be very expressive. two-level grammars. As their name suggests it, the main idea behind these grammars is that they are composed of two grammars. 2 Metamorphism vs. Polymor- Van Wijngaarden grammars, particularly, are such phism grammars. They are interesting by their power (expres- siveness), which can be the same, under some hypothe- The difference between polymorphism and metamor- ses, as the most powerful grammars of Chomsky’s clas- phism is often not very clear in people’s mind, so we sification, i.e. Type 0 grammars. Another point of inter- describe it quickly in this section. est is their relative conciseness and readability.
    [Show full text]