GLL syntax analysers for EBNF grammars
GLL syntax analysers for EBNF grammars
复制标题
用于 EBNF 语法的 GLL 语法分析器
DOI:
10.1016/j.scico.2018.06.001
复制
发表时间:
2018
影响因子:
1.3
通讯作者:
Scott E
中科院分区:
文献类型:
--
作者:
Scott E
GLL is a worst-case cubic, recursive descent based parsing technique which can be applied to all BNF grammars without the need for grammar modification. However, EBNF grammars are often used, both for their compactness and their relative expressive simplicity. In this paper we give a formal specification for a parse tree representation of derivations which reflects the EBNF structure of the grammar, is worst case cubic size, and captures all derivations in the case of ambiguity. Particular care is need in the case of closures with nullable bodies. We also describe an extension of GLL which directly supports the EBNF constructs. The resulting parsers are worst case cubic and follow the structure of the specifying EBNF grammar, making the parser behaviour easy to reason about. The parsers exploit the efficiency of factorisation and the use of iteration rather than recursion, retaining the structure of the specification in the presence of embedded semantic actions.
登录
查看更多内容
DOI:
10.1016/j.scico.2012.03.005
发表时间:
2013-10
期刊:
Sci. Comput. Program.
影响因子:
--
作者:
E. Scott;A. Johnstone
通讯作者:
E. Scott;A. Johnstone
DOI:
10.1007/978-94-010-9733-8_3
发表时间:
1993
期刊:
J. Comput. Lang.
影响因子:
--
作者:
M. Nederhof;J. Sarbo
通讯作者:
J. Sarbo
影响因子:
0.6
作者:
John Aycock;N. Horspool;Jan Janousek;B. Melichar
通讯作者:
B. Melichar
影响因子:
22.7
作者:
N. Wirth
通讯作者:
N. Wirth
影响因子:
1.3
作者:
Scott E
通讯作者:
Scott E