Affiliation:
1. University of Wisconsin-Milwaukee, Milwaukee, WI
Abstract
Describing the static semantics of programming languages with attribute grammars is eased when the formalism allows direct dependencies to be induced between rules for nodes arbitrarily far away in the tree. Such
direct non-local
dependencies cannot be analyzed using classical methods, which enable efficient evaluation.This article defines an attribute grammar extension (“remote attribute grammars”) to permit references to objects with fields to be passed through the attribute system. Fields may be read and written through these references. The extension has a declarative semantics in the spirit of classical attribute grammars. It is shown that determining circularity of remote attribute grammars is undecidable.The article then describes a family of conservative tests of noncircularity and shows how they can be used to “schedule” a remote attribute grammar using standard techniques. The article discusses practical batch and incremental evaluation of remote attribute grammars.
Publisher
Association for Computing Machinery (ACM)
Subject
Artificial Intelligence,Hardware and Architecture,Information Systems,Control and Systems Engineering,Software
Cited by
44 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Nanopass Attribute Grammars;Proceedings of the 16th ACM SIGPLAN International Conference on Software Language Engineering;2023-10-23
2. Sharing Trees and Contextual Information: Re-imagining Forwarding in Attribute Grammars;Proceedings of the 16th ACM SIGPLAN International Conference on Software Language Engineering;2023-10-23
3. Reflection of terms in attribute grammars: Design and applications;Journal of Computer Languages;2021-06
4. Strategic tree rewriting in attribute grammars;Proceedings of the 13th ACM SIGPLAN International Conference on Software Language Engineering;2020-11-15
5. Monadification of attribute grammars;Proceedings of the 13th ACM SIGPLAN International Conference on Software Language Engineering;2020-11-15