RIE, A COMPILER GENERATOR BASED ON A ONE-PASS-TYPE ATTRIBUTE GRAMMAR

Citation
M. Sassa et al., RIE, A COMPILER GENERATOR BASED ON A ONE-PASS-TYPE ATTRIBUTE GRAMMAR, Software, practice & experience, 25(3), 1995, pp. 229-250
Citations number
29
Categorie Soggetti
Computer Sciences","Computer Science Software Graphycs Programming
ISSN journal
00380644
Volume
25
Issue
3
Year of publication
1995
Pages
229 - 250
Database
ISI
SICI code
0038-0644(1995)25:3<229:RACGBO>2.0.ZU;2-T
Abstract
We herein describe a compiler generator, Rie, which is based on a one- pass-type attribute grammar. LR-attributed grammars are one class of a ttribute grammars in which attribute evaluation can be performed in on e pass during LR parsing without creating a parse tree. Rie was develo ped based on a variant of an LR-attributed grammar called ECLR-attribu ted grammar (equivalence class LR-attributed grammar), in which equiva lence relations are introduced into the LR-attributed grammar. Rie gen erates a one-pass compiler from a compiler description given in attrib ute grammar form. Many language processors have been developed using R ie. The generated compiler is only about 1.8 times slower than a handw ritten compiler, which is fairly efficient for a compiler generated fr om formal descriptions.