Abstract
A top-down parsing algorithm has been constructed to accommodate any form of ambiguous context-free grammar, augmented with semantic rules with arbitrary attribute dependencies. A memoization technique is used with this non-strict method for efficiently processing ambiguous input. This one-pass approach allows Natural Language (NL) processors to be constructed as executable, modular and declarative specifications of Attribute Grammars.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V., Ullman, J.D.: The Theory of Parsing, vol. I. Prentice-Hall, Englewood Cliffs (1972)
Bird, R.S.: Intro. to Functional Programming in Haskell. Prentice-Hall, Englewood Cliffs (1998)
De Moor, O., Backhouse, K., Swierstra, D.: First-class attribute grammars. In: WAGA (2000)
Frost, R.A., Hafiz, R., Callaghan, P.: Modular and efficient top-down parsing for ambiguous left-recursive grammars. In: 10th IWPT, ACL, pp. 109–120 (2007)
Frost, R.A., Hafiz, R., Callaghan, P.: Parser combinators for ambiguous left-recursive grammars. In: 10th PADL, vol. 4902, pp. 167–181. ACM, New York (2008)
Knuth, D.E.: Semantics of context-free languages. Theory of Comp. Systems 2(2), 127–145 (1968)
Wadler, P.: Monads for functional programming. First International Spring School on Advanced Functional Programming Techniques 925, 24–52 (1995)
Warren, D.S.: Programming the ptq grammar in xsb. In: Workshop on Programming with Logic Databases, pp. 217–234 (1993)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Hafiz, R. (2009). Executable Specifications of Fully General Attribute Grammars with Ambiguity and Left-Recursion. In: Gao, Y., Japkowicz, N. (eds) Advances in Artificial Intelligence. Canadian AI 2009. Lecture Notes in Computer Science(), vol 5549. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-01818-3_41
Download citation
DOI: https://doi.org/10.1007/978-3-642-01818-3_41
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-01817-6
Online ISBN: 978-3-642-01818-3
eBook Packages: Computer ScienceComputer Science (R0)