首页 | 本学科首页   官方微博 | 高级检索  
     


Testing attribute grammars for circularity
Authors:Kari -Jouko Räihä  Mikko Saarinen
Affiliation:(1) Department of Computer Science, University of Helsinki, Tukholmankatu 2, SF-00250 Helsinki 25, Finland;(2) Technical Research Center of Finland, Computing Services, Vuorimiehentie 5, SF-02150 Espoo 15, Finland
Abstract:Summary The problem of deciding whether a given attribute grammar is noncircular is known to require exponential time for infinitely many grammars. Here the time requirement of a simple circularity test is analyzed. It is shown that the reason for the exponential time requirement is the number of graphs in a collection formed for every nonterminal. By practical experiments it is argued that for real grammars the number is very small. Therefore it is feasible to actually perform the circularity test in practice. Different techniques to improve the implementation of the circularity test are discussed, too.
Keywords:
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号