Recognising and Generating Terms using Derivatives of Parsing Expression Grammars

01/31/2018
by   Tony Garnock-Jones, et al.
0

Grammar-based sentence generation has been thoroughly explored for Context-Free Grammars (CFGs), but remains unsolved for recognition-based approaches such as Parsing Expression Grammars (PEGs). Lacking tool support, language designers using PEGs have difficulty predicting the behaviour of their parsers. In this paper, we extend the idea of derivatives, originally formulated for regular expressions, to PEGs. We then present a novel technique for sentence generation based on derivatives, applicable to any grammatical formalism for which the derivative can be defined--now including PEGs. Finally, we propose applying derivatives more generally to other problems facing language designers and implementers.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/28/2019

LL(1) Parsing with Derivatives and Zippers

In this paper, we present an efficient, functional, and formally verifie...
research
02/21/2017

On the Complexity of CCG Parsing

We study the parsing complexity of Combinatory Categorial Grammar (CCG) ...
research
06/30/2011

IDL-Expressions: A Formalism for Representing and Parsing Finite Languages in Natural Language Processing

We propose a formalism for representation of finite languages, referred ...
research
08/24/2017

A Computational Interpretation of Context-Free Expressions

We phrase parsing with context-free expressions as a type inhabitation p...
research
08/29/2011

Parsing Combinatory Categorial Grammar with Answer Set Programming: Preliminary Report

Combinatory categorial grammar (CCG) is a grammar formalism used for nat...
research
12/18/2018

CPEG: A Typed Tree Construction from Parsing Expression Grammars with Regex-Like Captures

CPEG is an extended parsing expression grammar with regex-like capture a...
research
06/04/2020

SMIE: Weakness is Power!: Auto-indentation with incomplete information

Automatic indentation of source code is fundamentally a simple matter of...

Please sign up or login with your details

Forgot password? Click here to reset