Compiler Construction

Volume 2304 of the series Lecture Notes in Computer Science pp 143-158


Disambiguation Filters for Scannerless Generalized LR Parsers

  • Mark G. J. van den BrandAffiliated withCentrum voor Wiskunde en Informatica (CWI)LORIA, INRIA
  • , Jeroen ScheerderAffiliated withDepartment of Philosophy, Utrecht University
  • , Jurgen J. VinjuAffiliated withCentrum voor Wiskunde en Informatica (CWI)
  • , Eelco VisserAffiliated withInstitute of Information and Computing Sciences, Utrecht University


In this paper we present the fusion of generalized LR parsing and scannerless parsing. This combination supports syntax definitions in which all aspects (lexical and context-free) of the syntax of a language are defined explicitly in one formalism. Furthermore, there are no restrictions on the class of grammars, thus allowing a natural syntax tree structure. Ambiguities that arise through the use of unrestricted grammars are handled by explicit disambiguation constructs, instead of implicit defaults that are taken by traditional scanner and parser generators. Hence, a syntax definition becomes a full declarative description of a language. Scannerless generalized LR parsing is a viable technique that has been applied in various industrial and academic projects.