Parser Generators Sharing LR Automaton Generators and Accepting General Purpose Programming Language-based Specifications
Parser Generators Sharing LR Automaton Generators and Accepting General Purpose Programming Language-based Specifications
复制标题
解析器生成器共享 LR 自动机生成器并接受基于通用编程语言的规范
DOI:
10.5626/jok.2020.47.1.52
复制
发表时间:
2020
期刊:
影响因子:
--
通讯作者:
Iksoon Kim
中科院分区:
文献类型:
--
作者:
Lim Jin Taeck;Kim Gayoung;Shin Seunghyun;Choi, Kwanghoon;Iksoon Kim
This paper proposes two ways to develop LR parsers easily. First, one can write a parser specification in a general programming language and derive the benefits of syntax error checking, code completion, and type-error checking over the specification from the language’s development environment. Second, to make it easy to develop a parser tool for a new programming language, the automata generation for the parser specifications is in a modular form. With the idea proposed in this study, we developed a tool for writing parsers in Python, Java, C++, and Haskell. We also demonstrated the two aforementioned advantages in an experiment.