skip to main content
10.1145/1050330.1050397acmotherconferencesArticle/Chapter ViewAbstractPublication PagescompsystechConference Proceedingsconference-collections
Article

A flexible table driven LR(1) parser

Published:17 June 2004Publication History

ABSTRACT

The implementation of a flexible table driven LR(1) parser is presented in this paper. The LR(1) parsing algorithm is based on modified bottom up strategy described in [1] and it stays the same for all grammars. A parser with control tables that are initialized within the source text has no flexibility because each new LR(1) parser implementation needs to recompile the source text in order to adjust its data control structures like terminal symbols, non terminal symbols, grammar rules and control table. To avoid this drawback a configuration text edited file is to be created and read as input to adapt the parser before the syntax analysis process starts execution.

References

  1. Yankov B., Translators and Operating Systems, Sofia, Tehnika Publ., 1993, (in Bulgarian).Google ScholarGoogle Scholar
  2. Tremblay J. P., P. Sorenson, The Theory and Practice of Compiler Writing, McGraw Hill Book Company, 1985. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Aho A., R. Sethi, J. Ullman, Compilers, Principles, Techniques and Tools, Addison Wesley Publishing Company, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. Aho A., J. Ullman, The Theory of Parsing, Translation and Computing, vol. 1, 2, Prentice Hall, 1973. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. Bonev S., Implementation of LR(1) Parsers, Proc of the 16th Int. Conf. Systems for Automation of Engineering and Research SAER 2002, Varna, Bulgaria, pp 149--153.Google ScholarGoogle Scholar

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
  • Published in

    cover image ACM Other conferences
    CompSysTech '04: Proceedings of the 5th international conference on Computer systems and technologies
    June 2004
    661 pages
    ISBN:9549641384
    DOI:10.1145/1050330

    Copyright © 2004 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: 17 June 2004

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • Article

    Acceptance Rates

    Overall Acceptance Rate241of492submissions,49%