Skip to content
naulon

No noticeNo retraction, correction or concern found when last checked on Dec 2, 2026.

Derivatives of Parsing Expression Grammars

Aaron Moss

Electronic Proceedings in Theoretical Computer Science · 2017

doi:10.4204/eptcs.252.18 (opens in a new tab)

We email you when a new notice or a question about this paper appears.

Abstract

This paper introduces a new derivative parsing algorithm for recognition of parsing expression grammars. Derivative parsing is shown to have a polynomial worst-case time bound, an improvement on the exponential bound of the recursive descent algorithm. This work also introduces asymptotic analysis based on inputs with a constant bound on both grammar nesting depth and number of backtracking choices; derivative and recursive descent parsing are shown to run in linear time and constant space on this useful class of inputs, with both the theoretical bounds and the reasonability of the input class validated empirically. This common-case constant memory usage of derivative parsing is an improvement on the linear space required by the packrat algorithm.

Abstract licence: CC BY-NC-ND

References 18

    18 more references, whose wording the paper’s licence keeps private.

    Reads

    Read by people on this page

    None yet.

    Checked or read by AI through naulon

    None yet.

    A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.

    Are you an author?

    Is this your paper?

    Claim it to add your note and be paid when agents cite it. Free.