Results 1 to 10 of about 296,979 (166)

Morpheus: Automated Safety Verification of Data-dependent Parser Combinator Programs [PDF]

open access: greenarXiv, 2023
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]

open access: bronze, 2022
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]

open access: bronzeProceedings of the 14th ACM SIGPLAN International Symposium on Haskell, 2021
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]

open access: bronzeProceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation, 2019
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]

open access: greenProceedings of the 31st Symposium on Implementation and Application of Functional Languages, 2019
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]

open access: hybridJournal of the Brazilian Computer Society, 2003
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

open access: diamondThe Journal of Open Source Software, 2017
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]

open access: greenProc Int Conf Inf Technol New Gener, 2013
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]

open access: yesarXiv, 2023
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]

open access: bronzeJournal of Functional Programming, 1996
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

Home - About - Disclaimer - Privacy