𝔖 Bobbio Scriptorium
✦   LIBER   ✦

Generalized Parsing and Term Rewriting: Semantics Driven Disambiguation

✍ Scribed by M.G.J. van den Brand; A.S. Klusener; L. Moonen; J.J. Vinju


Publisher
Elsevier Science
Year
2003
Tongue
English
Weight
166 KB
Volume
82
Category
Article
ISSN
1571-0661

No coin nor oath required. For personal study only.

✦ Synopsis


Generalized parsing technology provides the power and flexibility to attack realworld parsing applications. However, many programming languages have syntactical ambiguities that can only be solved using semantical analysis. In this paper we propose to apply the paradigm of term rewriting to filter ambiguities based on semantical information. We start with the definition of a representation of ambiguous derivations. Then we extend term rewriting with means to handle such derivations. Finally, we apply these tools to some real world examples, namely C and COBOL. The resulting architecture is simple and efficient as compared to semantic directed parsing.