Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
Elkhound: A Fast, Practical GLR Parser GeneratorJanuary 2003
2003 Technical Report
Publisher:
  • University of California at Berkeley
  • Computer Science Division 571 Evans Hall Berkeley, CA
  • United States
Published:06 January 2003
Reflects downloads up to 30 Aug 2024Bibliometrics
Skip Abstract Section
Abstract

Elkhound is an implementation of the Generalized LR (GLR) parsing algorithm [Tomita86, Rekers92] that allows the user to associate arbitrary C++ code with reduction actions, while retaining full control of sharing and disambiguation. Elkhound specifications are similar to those of YACC for LALR(1) grammar fragments, exposing the details of the GLR reduction process only where the grammar requires it. Further, the algorithm itself can switch on a token-by-token basis between GLR and simple LR, achieving very good performance for unambiguous portions of the input. The resulting system is familiar to even casual users of tools like YACC or Bison, but powerful enough to elegantly handle the dark corners of real-world languages.

Contributors

Recommendations