• LOGIN
    Login with username and password
Repository logo

BORIS Portal

Bern Open Repository and Information System

  • Publications
  • Theses
  • Research Data
  • Projects
  • Organizations
  • Researchers
  • More
  • Collections
  • Statistics
  • LOGIN
    Login with username and password
Repository logo
Unibern.ch
  1. Home
  2. Publications
  3. Optimizing Parser Combinators
 

Optimizing Parser Combinators

Options
  • Details
  • Files
BORIS DOI
10.7892/boris.94641
Official URL
http://scg.unibe.ch/archive/papers/Kurs16a-Compiler.pdf
Publisher DOI
10.1145/2991041.2991042
Description
Parser combinators are a popular approach to parsing. Parser combinators follow the structure of an underlying grammar, are modular, well-structured, easy to maintain, and can recognize a large variety of languages including context-sensitive ones. However, their universality and flexibility introduces a noticeable performance overhead. Time-wise, parser combinators cannot compete with parsers generated by well-performing parser generators or optimized hand-written code. Techniques exist to achieve a linear asymptotic performance of parser combinators, yet there is still a significant constant multiplier. This can be further lowered using meta-programming techniques. In this work we present a more traditional approach to optimization —- a compiler —- applied to the domain of parser combinators. A parser combinator compiler (pc-compiler) analyzes a parser combinator, applies parser combinator-specific optimizations and, generates an equivalent high-performance top-down parser. Such a compiler preserves the advantages of parser combinators while complementing them with better performance.
Date of Publication
2016
Publication Type
Conference Item
Subject(s)
000 Computer science, knowledge & systems
500 Science > 510 Mathematics
Keyword(s)
scg16 scg-pub jb17 snf-asa2 kursjan petitcompiler
Language(s)
en
Contributor(s)
Kurs, Jan
Institut für Informatik (INF)
Vraný, Jan
Ghafari, Mohammad
Institut für Informatik (INF)
Lungu, Mircea
Institut für Informatik (INF)
Nierstrasz, Oscar
Institut für Informatik (INF)
Additional Credits
Institut für Informatik (INF)
ISBN
978-1-4503-4524-8
Title of Event
IWST'16 Proceedings of the 11th edition of the International Workshop on Smalltalk Technologies
Access(Rights)
restricted
Show full item
BORIS Portal
Bern Open Repository and Information System
Build: dd892c [ 9.04. 8:30]
Explore
  • Projects
  • Funding
  • Publications
  • Research Data
  • Organizations
  • Researchers
  • Audiovisual Material
  • Software & other digital items
  • Events
More
  • About BORIS Portal
  • Send Feedback
  • Cookie settings
  • Service Policy
Follow us on
  • Mastodon
  • YouTube
  • LinkedIn
UniBe logo