{"title":"On the construction of LR(k) analyzers","authors":"Tatsuya Hayashi","doi":"10.1145/800184.810522","DOIUrl":null,"url":null,"abstract":"A method for constructing almost optimal Floyd-Evans type Productions for LR(k) grammars is described here. Knuth has given the algorithm for constructing the analyzer. But its parsing table is too large and unacceptable for practical use. The concept of route indexes is used in our method. Using the concept it is possible to transform the transition diagram of Knuth's analyzer into another equivalent one whose number of statuses is much less than that of Knuth's transition diagram. As the result, we can get Productions which are optimal concerning both the time and the space efficiency, at the cost of the constructor complexity.","PeriodicalId":126192,"journal":{"name":"ACM '71","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM '71","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/800184.810522","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3
Abstract
A method for constructing almost optimal Floyd-Evans type Productions for LR(k) grammars is described here. Knuth has given the algorithm for constructing the analyzer. But its parsing table is too large and unacceptable for practical use. The concept of route indexes is used in our method. Using the concept it is possible to transform the transition diagram of Knuth's analyzer into another equivalent one whose number of statuses is much less than that of Knuth's transition diagram. As the result, we can get Productions which are optimal concerning both the time and the space efficiency, at the cost of the constructor complexity.