首页 | 本学科首页   官方微博 | 高级检索  
     


GLL parse-tree generation
Authors:Elizabeth Scott  Adrian Johnstone
Affiliation:Department of Computer Science, Royal Holloway, University of London, Egham, Surrey, United Kingdom
Abstract:Backtracking techniques which are often used to extend recursive descent (RD) parsers can have explosive run-times and cannot deal with grammars with left recursion. GLL parsers are fully general, worst-case cubic parsers which have the recursive descent-like property that they are easy to write and to use for grammar debugging. They have the direct relationship with the grammar that an RD parser has. In this paper we give an algorithm for generating GLL parsers which build an SPPF representation of the derivations of the input, complementing our existing GLL recognition algorithm, and we show that such parsers and recognisers are worst-case cubic.
Keywords:Generalised parsing   Recursive descent   GLL parsing   RNGLR and RIGLR parsing   Context free languages
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号