skip to main content
article
Free Access

LLparse and LRparse: visual and interactive tools for parsing

Authors Info & Claims
Published:12 March 1994Publication History
Skip Abstract Section

Abstract

This paper describes instructional tools, LLparse and LRparse, for visualizing and interacting with small examples of LL and LR parsing. These tools can be used to understand the process of constructing LL(1) and LR(1) parse tables through a series of steps in which users receive feedback on the correctness of each step before moving on to the next step. For example, in LRparse, the user initially enters an LR(1) grammar, calculates FIRST and FOLLOW sets, graphically constructs a deterministic finite automaton of item sets, and finally constructs the LR(1) parsing table. Upon completion of the constructed table, the user can observe a visualization of the parsing of input strings. These tools can be used to provide problem solving feedback in courses on automata theory or compiler design.

References

  1. 1 A. Aho, R. Sethi and J. Ullman, Compilers: Princzples, Techniques, and Tools, Addison-Wesley, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. 2 A. Aho and J. Ullman, Foundations of Computer Science, Computer Science Press, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. 3 J. Barwise and J. Etchemendy, Turing's World, Kinko's Academic Courseware Exchange, Santa Barbara~ CA~ 1986.Google ScholarGoogle Scholar
  4. 4 S. Blythe, LLparse and Lttparse" Interactive LL(1) and LR(1) Parsing Tutorials, Master's Project, Rensselaer Polytechnic institute, May 1993.Google ScholarGoogle Scholar
  5. 5 M. James, A Software Tool to Aid in Understanding LL Parsing, Master's Project, Rensselaer Polytechnic institute, September 1992.Google ScholarGoogle Scholar
  6. 6 D. Hannay, Hypercard Automata Simulation: Finite State, Pushdown and Turing Machines, SIGCSE Bulletin, 24, 2, p. 55-58, June 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. 7 M. C. Lee, An Abstract Machine Simulator, Third Inlernational Conference on Computer Assisted Learmng, p. 129-141, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. 8 H. Lewis, and C. Papadimitriou, Elements of ~he Theory of Compulation, Prentice-Hall~ 1981. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. 9 P. Linz, An Introduction to Formal Languages and A uloma~a, D. C. Heath and Company, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. 10 M. LoSacco, and S. H. ttodger, FLAP:: A Tool for Drawing and Simulating Automata, ED-MEDIA 93, p. 310-317, June 1993.Google ScholarGoogle Scholar
  11. 11 K. Sutner, Implementing Finite State Machines, DIMA CS Workshop on Computational Support for Discrele Malhemalics, 1992.Google ScholarGoogle Scholar

Index Terms

  1. LLparse and LRparse: visual and interactive tools for parsing

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in

          Full Access

          • Published in

            cover image ACM SIGCSE Bulletin
            ACM SIGCSE Bulletin  Volume 26, Issue 1
            March 1994
            410 pages
            ISSN:0097-8418
            DOI:10.1145/191033
            Issue’s Table of Contents
            • cover image ACM Conferences
              SIGCSE '94: Proceedings of the twenty-fifth SIGCSE symposium on Computer science education
              March 1994
              414 pages
              ISBN:0897916468
              DOI:10.1145/191029

            Copyright © 1994 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 12 March 1994

            Check for updates

            Qualifiers

            • article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader