Skip to main content

Showing 1–1 of 1 results for author: Hutchison, L A D

Searching in archive cs. Search in all archives.
.
  1. arXiv:2005.06444  [pdf, other

    cs.PL

    Pika parsing: reformulating packrat parsing as a dynamic programming algorithm solves the left recursion and error recovery problems

    Authors: Luke A. D. Hutchison

    Abstract: A recursive descent parser is built from a set of mutually-recursive functions, where each function directly implements one of the nonterminals of a grammar. A packrat parser uses memoization to reduce the time complexity for recursive descent parsing from exponential to linear in the length of the input. Recursive descent parsers are extremely simple to write, but suffer from two significant prob… ▽ More

    Submitted 6 July, 2020; v1 submitted 13 May, 2020; originally announced May 2020.

    Comments: Submitted to ACM

    ACM Class: F.4.2; D.3.4