A Derivative-based Parser Generator for Visibly Pushdown Grammars

09/09/2021
by   Xiaodong Jia, et al.
0

In this paper, we present a derivative-based, functional recognizer and parser generator for visibly pushdown grammars. The generated parser accepts ambiguous grammars and produces a parse forest containing all valid parse trees for an input string in linear time. Each parse tree in the forest can then be extracted also in linear time. Besides the parser generator, to allow more flexible forms of the visibly pushdown grammars, we also present a translator that converts a tagged CFG to a visibly pushdown grammar in a sound way, and the parse trees of the tagged CFG are further produced by running the semantic actions embedded in the parse trees of the translated visibly pushdown grammar. The performance of the parser is compared with a popular parsing tool ANTLR and other popular hand-crafted parsers. The correctness of the core parsing algorithm is formally verified in the proof assistant Coq.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/15/2020

The LL(finite) strategy for optimal LL(k) parsing

The LL(finite) parsing strategy for parsing of LL(k) grammars where k ne...
research
03/14/2023

Happy-GLL: modular, reusable and complete top-down parsers for parameterized nonterminals

Parser generators and parser combinator libraries are the most popular t...
research
01/05/2016

Joint learning of ontology and semantic parser from text

Semantic parsing methods are used for capturing and representing semanti...
research
01/13/2020

A Verified Packrat Parser Interpreter for Parsing Expression Grammars

Parsing expression grammars (PEGs) offer a natural opportunity for build...
research
10/30/2020

Lake symbols for island parsing

Context: An island parser reads an input text and builds the parse (or a...
research
06/05/2019

Automatic Generation of High Quality CCGbanks for Parser Domain Adaptation

We propose a new domain adaptation method for Combinatory Categorial Gra...
research
06/01/2021

Replicating and Extending "Because Their Treebanks Leak": Graph Isomorphism, Covariants, and Parser Performance

Søgaard (2020) obtained results suggesting the fraction of trees occurri...

Please sign up or login with your details

Forgot password? Click here to reset