首页   按字顺浏览 期刊浏览 卷期浏览 Modelling of space‐efficient one‐pass translation using attribute grammars
Modelling of space‐efficient one‐pass translation using attribute grammars

 

作者: Kai Koskimies,   Kari‐Jouko Räihä,  

 

期刊: Software: Practice and Experience  (WILEY Available online 1983)
卷期: Volume 13, issue 2  

页码: 119-129

 

ISSN:0038-0644

 

年代: 1983

 

DOI:10.1002/spe.4380130203

 

出版商: John Wiley&Sons, Ltd.

 

关键词: Attribute grammars;One‐pass translation;Euclid;Space optimization;Grammar design

 

数据来源: WILEY

 

摘要:

AbstractAutomatic production of one‐pass compilers from attribute grammars is considered. An examination of a one‐pass grammar for the programming language Euclid shows that the present definition of one‐pass grammars is too general: the space behaviour of the produced compilers differs from that found in conventional hand‐written compilers. A new class of attribute grammars is defined. The class models naturally the use of space in a hand‐written compiler. This implies that the compiler produced automatically on the basis of the grammar uses space in the same way as a practical hand‐written recursive descent compiler. Furthermore, a graphical notation is introduced as a design tool for obtaining grammars in the pro

 

点击下载:  PDF (641KB)



返 回