C. Rodrı́guezLuis García ForteTheodore E. SimosGeorge PsihoyiosCh. TsitourasZacharias Anastassi
This paper presents a new algorithm to compute the exact list of tokens expected by any LR syntax analyzer at any point of the scanning process. The lexer can, at any time, compute the exact list of valid tokens to return only tokens in this set. In the case than more than one matching token is in the valid set, the lexer can resort to a nested LR parser to disambiguate. Allowing nested LR parsing requires some slight modifications when building the LR parsing tables. We also show how LR parsers can parse conflictive and inherently ambiguous languages using a combination of nested parsing and context aware scanning. These expanded lexical analyzers can be generated from high level specifications.
Yunjing XuMichael BaileyEric Vander WeeleFarnam Jahanian
Eric R. Van WykAugust Schwerdfeger
Atif ManzoorHong‐Linh TruongSchahram Dustdar
Sheir Afgen ZaheerJong-Hwan Kim
Thais SilvaLinnyer B. RuizAntonio A. F. Loureiro