We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.FL

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Formal Languages and Automata Theory

Title: Scanning and Parsing Languages with Ambiguities and Constraints: The Lamb and Fence Algorithms

Abstract: Traditional language processing tools constrain language designers to specific kinds of grammars. In contrast, model-based language processing tools decouple language design from language processing. These tools allow the occurrence of lexical and syntactic ambiguities in language specifications and the declarative specification of constraints for resolving them. As a result, these techniques require scanners and parsers able to parse context-free grammars, handle ambiguities, and enforce constraints for disambiguation. In this paper, we present Lamb and Fence. Lamb is a scanning algorithm that supports ambiguous token definitions and the specification of custom pattern matchers and constraints. Fence is a chart parsing algorithm that supports ambiguous context-free grammars and the definition of constraints on associativity, composition, and precedence, as well as custom constraints. Lamb and Fence, in conjunction, enable the implementation of the ModelCC model-based language processing tool.
Comments: arXiv admin note: text overlap with arXiv:1111.3970, arXiv:1110.1470
Subjects: Formal Languages and Automata Theory (cs.FL)
Cite as: arXiv:1501.02795 [cs.FL]
  (or arXiv:1501.02795v1 [cs.FL] for this version)

Submission history

From: Luis Quesada [view email]
[v1] Sun, 11 Jan 2015 15:11:15 GMT (82kb)

Link back to: arXiv, form interface, contact.