Termination analysis for higher-order attribute grammars

Lijesh Krishnan, Eric Van Wyk

Research output: Chapter in Book/Report/Conference proceedingConference contribution

4 Scopus citations

Abstract

This paper describes a conservative analysis to detect non-termination in higher-order attribute grammar evaluation caused by the creation of an unbounded number of (finite) trees as local tree-valued attributes, which are then themselves decorated with attributes. This type of non-termination is not detected by a circularity analysis for higher-order attribute grammars. The analysis presented here uses term rewrite rules to model the creation of new trees on which attributes will be evaluated. If the rewrite rules terminate then only a finite number of trees will be created. To handle higher-order inherited attributes, the analysis places an ordering on non-terminals to schedule their use and ensure a finite number of passes over the generated trees. When paired with the traditional completeness and circularity analyses and the assumption that each attribute equation defines a terminating computation, this analysis can be used to show that attribute grammar evaluation will terminate normally. This analysis is applicable to a wide range of common attribute grammar idioms and has been used to show that evaluation of our specification of Java 1.4 terminates.

Original languageEnglish (US)
Title of host publicationSoftware Language Engineering - 5th International Conference, SLE 2012, Revised Selected Papers
Pages44-63
Number of pages20
DOIs
StatePublished - Jan 28 2013
Event5th International Conference on Software Language Engineering, SLE 2012 - Dresden, Germany
Duration: Sep 26 2012Sep 28 2012

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume7745 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Other

Other5th International Conference on Software Language Engineering, SLE 2012
CountryGermany
CityDresden
Period9/26/129/28/12

Fingerprint Dive into the research topics of 'Termination analysis for higher-order attribute grammars'. Together they form a unique fingerprint.

Cite this