題名: | SSCC: A Sufficiently Smart Compiler-Compiler |
作者: | Yang, Wuu Lin, Yen-Tsan |
關鍵字: | attribute grammars ordered attribute grammars compiler compiler |
期刊名/會議名稱: | 1996 ICS會議 |
摘要: | Attribute grammars are a formalism for specifying computations on syntax trees. SSCC is a practical attribute-grammar system based on a polynomial-time extension of Kastens’s ordered attribute grammars. The system comprises of two subsystems. The generation subsystem computes the evaluation order of attribute occurrences in production rules and translates attribute equations into low-level code for a virtual stack machine. The evaluation subsystem invokes tools to perform lexical and syntactic analysis and evaluates the attribute instances during a traversal of the syntax tree. Three features make SSCC capable of performing any desired computation (within the constraints of ordered attribute grammars): user-defined data types, user-defined functions, and the finalize function. A user may define arbitrary types and functions for use in the attribution equations. After all the attribute instances are evaluated, SSCC calls the finalize function, which may be supplied by a user, and passes it the whole decorated syntax tree. This offers a user opportunities for further processing the tree and attributes. The SSCC system is semi-strongly typed in the sense that type consistency within a specification is fully checked; however, type consistency between a specification and user-supplied functions, which are written in the C language, is not. |
日期: | 2006-10-27 |
分類: | 1996年 ICS 國際計算機會議 |
文件中的檔案:
檔案 | 描述 | 大小 | 格式 | |
---|---|---|---|---|
ce07ics001996000054.pdf | 562.65 kB | Adobe PDF | 檢視/開啟 |
在 DSpace 系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。