jpstar.blogg.se

Packrat definition
Packrat definition












packrat definition

packrat definition

A person who habitually saves items, even those unlikely to be useful. Syn: trade rat, bushytail woodrat, Neotoma cinerea. Interpreters are proved equivalent to the reference one. Introduction Parsing expression grammars(PEGs) are an alternative to context free grammars for formally specifying syntax, and packrat parsersare parsers for PEGs that operate in guaranteed linear time through the use of memoization. Any of several bushy-tailed rodents of the genus Neotoma of western North America, especially Neotoma cinerea, which hoard food and other objects in their nests. Parser interpreter, we define a packrat parser interpreter as well as anĮxtension that is capable of semantic interpretation. Properties are embedded in the types of the operations so that the proofs canīe easily constructed from local proof obligations. Properties including soundness and completeness are maintained. Syntax trees that represent the computational trace of the parser to provide anĮffective proof certificate for correct parsing and ensure that parsing Rather than relying on an inductive definition of parsing, we use abstract To ensure termination of parsing, we define a notion of a well-formed grammar. Reference implementation of a recursive parser interpreter for PEGs. We use the rich type system of the PVS specification languageĪnd verification system to formalize the metatheory of PEGs and define a PEGsĪre expressive, unambiguous, and efficient to parse in a top-down recursiveĭescent style. Verified parser interpreters based on higher-order parsing combinators.

Packrat definition pdf#

Download a PDF of the paper titled A Verified Packrat Parser Interpreter for Parsing Expression Grammars, by Clement Blaudeau and Natarajan Shankar Download PDF Abstract: Parsing expression grammars (PEGs) offer a natural opportunity for building














Packrat definition