{"title":"A unifying model for lookahead LR parsing","authors":"M. Bermudez","doi":"10.1109/ICCL.1988.13038","DOIUrl":null,"url":null,"abstract":"A construction method is presented for lookahead LR passers that unifies many of the construction algorithms available in the literature. The model allows single, multiple, and arbitrary symbol lookahead, each only when required. Three user-supplied parameters are used by the construction method; specific settings of these parameters yield well-known grammar classes such as LALR(k), SLR(k), and several subsets of the LR-regular class, among others. Thus. rather than using several severely incompatible parser generators, or making unnatural changes to the grammar to accommodate the parsing techniques, one can manipulate these parameters to obtain a suitable parsing technique. The model captures the essence of the problem of computing lookahead for LR parsers, and provides a better understanding of the relationships among the corresponding classes of context-free grammars.<<ETX>>","PeriodicalId":219766,"journal":{"name":"Proceedings. 1988 International Conference on Computer Languages","volume":"16 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1988-10-09","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"6","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings. 1988 International Conference on Computer Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCL.1988.13038","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 6
Abstract
A construction method is presented for lookahead LR passers that unifies many of the construction algorithms available in the literature. The model allows single, multiple, and arbitrary symbol lookahead, each only when required. Three user-supplied parameters are used by the construction method; specific settings of these parameters yield well-known grammar classes such as LALR(k), SLR(k), and several subsets of the LR-regular class, among others. Thus. rather than using several severely incompatible parser generators, or making unnatural changes to the grammar to accommodate the parsing techniques, one can manipulate these parameters to obtain a suitable parsing technique. The model captures the essence of the problem of computing lookahead for LR parsers, and provides a better understanding of the relationships among the corresponding classes of context-free grammars.<>