Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/2480362.2480682acmconferencesArticle/Chapter ViewAbstractPublication PagessacConference Proceedingsconference-collections
research-article

LLLR parsing

Published: 18 March 2013 Publication History

Abstract

The idea of an LLLR parsing is presented. An LLLR(k) parser can be constructed for any LR(k) grammar but it produces the left parse of the input string in linear time (in respect to the length of the derivation) without backtracking. If used as a basis for a syntax-directed translation, it triggers semantic actions using the top-down strategy just like the canonical LL(k) parser. Hence, from a compiler writer's point of view, it acts as an LL(k) parser. The backbone of the LLLR(k) parser is the LL(k) parser which triggers the embedded left LR(k) parser whenever an LL(k) conflict appears during parsing. Once the embedded LR(k) parser resolves the conflict, it passes the control back to the backbone LL(k) parser together with the left parse of the part of the input string scanned by the embedded LR parser, and LL parsing continues. Hence, LLLR parsing is similar to LL(*) parsing except (a) it uses LR(k) parsers instead of finite automata to resolve the LL(k) conflicts and (b) that it does not need to use backtracking. An LLLR(k) parser is the most appropriate for grammars where the LL(k) conflicting nonterminals appear relatively close to the leaves of the derivation trees.

References

[1]
R. N. Horspool. Recursive ascent-descent parsing. Journal of Computer Languages, 18(1):1--16, 1993.
[2]
T. Parr and K. Fischer. LL(*): The foundation of the ANTLR parser generator. ACM SIGPLAN Notices - PLDI'10, 46(6):425--436, 2011.
[3]
P. Purdom and C. A. Brown. Semantic routines and LR(k) parsers. Acta Informatica, 14(4):299--315, 1980.
[4]
J. P. Schmeiser and D. T. Barnard. Producing a top-down parse order with bottom-up parsing. Information Processing Letters, 54(6):323--326, 1995.
[5]
E. Scott and A. Johnstone. GLL parsing. Electronic Notes in Theoretical Computer Science, 253(7):177--189, 2010.
[6]
B. Slivnik. LL conflict resolution using the embedded left LR parser. Computer Science and Information Systems, 9(3):1105--1124, 2012.
[7]
B. Slivnik and B. Vilfan. Producing the left parse during bottom-up parsing. Information Processing Letters, 96(6):220--224, 2005.

Cited By

View all
  • (2022)Comparative Analysis of LR Parsers in Designing of Compilers2022 International Conference on Augmented Intelligence and Sustainable Systems (ICAISS)10.1109/ICAISS55157.2022.10010906(707-714)Online publication date: 24-Nov-2022
  • (2020)A unified representation for teaching bottom-up and top-down parsingJournal of Computing Sciences in Colleges10.5555/3417682.341769135:9(78-85)Online publication date: 12-Aug-2020
  • (undefined)Grassroots Digital Fabrication and Makerspaces: Reconfiguring, Relocating and Recalibrating Innovation?SSRN Electronic Journal10.2139/ssrn.2731835

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
SAC '13: Proceedings of the 28th Annual ACM Symposium on Applied Computing
March 2013
2124 pages
ISBN:9781450316569
DOI:10.1145/2480362
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 18 March 2013

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. LL parsing
  2. LR languages
  3. left parse
  4. parsing theory

Qualifiers

  • Research-article

Conference

SAC '13
Sponsor:
SAC '13: SAC '13
March 18 - 22, 2013
Coimbra, Portugal

Acceptance Rates

SAC '13 Paper Acceptance Rate 255 of 1,063 submissions, 24%;
Overall Acceptance Rate 1,650 of 6,669 submissions, 25%

Upcoming Conference

SAC '25
The 40th ACM/SIGAPP Symposium on Applied Computing
March 31 - April 4, 2025
Catania , Italy

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)6
  • Downloads (Last 6 weeks)3
Reflects downloads up to 09 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2022)Comparative Analysis of LR Parsers in Designing of Compilers2022 International Conference on Augmented Intelligence and Sustainable Systems (ICAISS)10.1109/ICAISS55157.2022.10010906(707-714)Online publication date: 24-Nov-2022
  • (2020)A unified representation for teaching bottom-up and top-down parsingJournal of Computing Sciences in Colleges10.5555/3417682.341769135:9(78-85)Online publication date: 12-Aug-2020
  • (undefined)Grassroots Digital Fabrication and Makerspaces: Reconfiguring, Relocating and Recalibrating Innovation?SSRN Electronic Journal10.2139/ssrn.2731835

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media