Результаты исследований: Научные публикации в периодических изданиях › статья › Рецензирование
The Generalized LR parsing algorithm for context-free grammars is notable for having a decent worst-case running time (cubic in the length of the input string, if implemented efficiently), as well as much better performance on “good” grammars. This paper extends the Generalized LR algorithm to the case of “grammars with left contexts” (M. Barash, A. Okhotin, “An extension of context-free grammars with one-sided context specifications”, Inform. Comput., 2014), which augment the context-free grammars with special operators for referring to the left context of the current substring, along with a conjunction operator (as in conjunctive grammars) for combining syntactical conditions. All usual components of the LR algorithm, such as the parsing table, shift and reduce actions, etc., are extended to handle the context operators. The resulting algorithm is applicable to any grammar with left contexts and has the same worst-case cubic-time performance as in the case of context-free grammars.
Язык оригинала | английский |
---|---|
Страницы (с-по) | 581-605 |
Число страниц | 25 |
Журнал | Theory of Computing Systems |
Том | 61 |
Номер выпуска | 2 |
DOI | |
Состояние | Опубликовано - 1 авг 2017 |
ID: 84641713