Implement indentation-sensitive grammar
未關閉
- 主要語言
- Python
- 星號
- 391
- 分支
- 62
- PR 合併指標
- 30 天內沒有已合併 PR
描述
[This paper](http://michaeldadams.org/papers/layout_parsing/LayoutParsing.pdf) presents a formalism for expressing indentation-sensitive grammars in GLR and LR(k) parsers which they claim easily generalises to various other parsers including LALR.
Would it be possible to extend the production syntax accepted by ParserGenerator to accept this and DTRT? I'd prefer not to insert a hack between the lexing and parsing stages of my compiler to convert whitespace into INDENT/DEDENT tokens.
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。