Results 1 to 10 of about 296,979 (166)
Morpheus: Automated Safety Verification of Data-dependent Parser Combinator Programs [PDF]
Parser combinators are a well-known mechanism used for the compositional construction of parsers, and have shown to be particularly useful in writing parsers for rich grammars with data-dependencies and global state. Verifying applications written using them, however, has proven to be challenging in large part because of the inherently effectful nature
Mishra, Ashish, Jagannathan, Suresh
arxiv +12 more sources
Jparsec - a parser combinator for Javascript [PDF]
Parser combinators have been a popular parsing approach in recent years. Compared with traditional parsers, a parser combinator has both readability and maintenance advantages.
Sida Zhong
semanticscholar +4 more sources
Design patterns for parser combinators (functional pearl) [PDF]
Parser combinators are a popular and elegant approach for parsing in functional languages. The design and implementation of such libraries are well discussed, but having a well-designed library is only one-half of the story. In this paper we explore several reusable approaches to writing parsers in combinator style, focusing on easy to apply patterns ...
Jamie Willis, Nicolas Wu
semanticscholar +4 more sources
Lightweight multi-language syntax transformation with parser parser combinators [PDF]
Automatically transforming programs is hard, yet critical for automated program refactoring, rewriting, and repair. Multi-language syntax transformation is especially hard due to heterogeneous representations in syntax, parse trees, and abstract syntax trees (ASTs).
Rijnard van Tonder, Claire Le Goues
semanticscholar +4 more sources
A new view on parser combinators [PDF]
Parser combinators offer a concise and fast way to produce reasonably efficient parsers. The combinator libraries themselves can be small and provide an elegant application of functional programming techniques. They are one of the success stories in functional programming that are also ported to many other languages.
Koopman, P.W.M., Plasmeijer, M.J.
semanticscholar +5 more sources
Mímico: a monadic combinator parser generator [PDF]
This article describes a compiler generator, called Mimico, that outputs code based on the use of monadic combinators. Mimico can parse infinite look-ahead and left-recursive context free grammars and defines a scheme for handling the precedence and associativity of binary infix operators, and monadic code in semantic rules. Mimico provides an easy way
Camarão, Carlos+2 more
semanticscholar +7 more sources
Ramble: Parser Combinator for R
Ramble is a parser combinator for the R (R Core Team 2016) language using the higher order functions. The combinatory parsing approached used in Ramble mirrors approaches used in functional languages such as Miranda (Hutton 1992), and is able to handle ...
Chapman Siu
semanticscholar +4 more sources
Parser Combinators: a Practical Application for Generating Parsers for NMR Data. [PDF]
Nuclear Magnetic Resonance (NMR) spectroscopy is a technique for acquiring protein data at atomic resolution and determining the three-dimensional structure of large protein molecules. A typical structure determination process results in the deposition of a large data sets to the BMRB (Bio-Magnetic Resonance Data Bank).
Fenwick M+3 more
europepmc +6 more sources
Happy-GLL: modular, reusable and complete top-down parsers for parameterized nonterminals [PDF]
Parser generators and parser combinator libraries are the most popular tools for producing parsers. Parser combinators use the host language to provide reusable components in the form of higher-order functions with parsers as parameters. Very few parser generators support this kind of reuse through abstraction and even fewer generate parsers that are ...
L. T. V. Binsbergen, Damian Frölich
arxiv +5 more sources
Predictive parser combinators need four values to report errors [PDF]
AbstractA combinator-based parser is a parser constructed directly from a BNF grammar, using higher-order functions (combinators) to model the alternative and sequencing operations of BNF. This paper describes a method for constructing parser combinators that can be used to build efficient predictive parsers which accurately report the cause of parsing
David W. Wright, Andrew S. Partridge
semanticscholar +4 more sources