Your browser does not support JavaScript!
http://iet.metastore.ingenta.com
1887

Incremental language design

Incremental language design

For access to this article, please select a purchase option:

Buy article PDF
£12.50
(plus tax if applicable)
Buy Knowledge Pack
10 articles for £75.00
(plus taxes if applicable)

IET members benefit from discounts to all IET publications and free access to E&T Magazine. If you are an IET member, log in to your account and the discounts will automatically be applied.

Learn more about IET membership 

Recommend Title Publication to library

You must fill out fields marked with: *

Librarian details
Name:*
Email:*
Your details
Name:*
Email:*
Department:*
Why are you recommending this title?
Select reason:
 
 
 
 
 
IEE Proceedings - Software — Recommend this title to your library

Thank you

Your recommendation has been sent to your librarian.

Formal methods for describing programming language semantics are not widely used since they are not modular, extensible and reusable. In the paper, a new extensible and reusable approach for specifying programming languages with attribute grammars is presented. The concepts from object-oriented programming, templates and multiple inheritance, are integrated with attribute grammars. A template in attribute grammar is an abstraction of a semantic rule parameterised with attribute occurrences. Conversely, the whole attribute grammar is a subject of multiple inheritance and specialisation. With the proposed approach a language designer has the opportunity to design incrementally a language or reuse some fragments from other programming language specifications. Templates and multiple inheritance have been implemented in the compiler generator tool LISA version 2.0.

References

    1. 1)
      • Jullig, K., Deremer, F.: `Regular right-part attribute grammars', Proceedings of SIGPLAN’84 symposium on Compiler construction, 1984, ACM SIGPLAN Notices, Vol. 19, No. 6, p. 171–178.
    2. 2)
      • Swierstra, S.D., Vogt, H.H.: `Higher order attribute grammars: a merge between functional and objectoriented programming', RUU-CS-90-12, 1990.
    3. 3)
      • Aksit, M., Mostert, R., Haverkort, B.: `Grammar inheritance', Technical, 1991.
    4. 4)
      • J. Paakki . Attribute grammar paradigms - A high-level methodology in language implementation. ACM Comput. Surv. , 2 , 196 - 255
    5. 5)
      • Grosch, J.: `Multiple inheritance in object-oriented attribute grammars', 28, Technical, 1990.
    6. 6)
      • M. Mernik , N. Korbar , V. Žumer . LISA: A tool for automatic language implementation. ACM Sigplan Notices , 4 , 71 - 79
    7. 7)
      • Marti, R., Murer, T.: `Extensible attribute grammars', 92-6, 1992.
    8. 8)
      • Koskimies, K.: `Object-orientation in attribute grammars', Proceeding of the international summer school SAGA, 1991, Lecture Notes in Computer Science 545, Prague, p. 297–329.
    9. 9)
      • A. Taivalsaari . On the notion of inheritance. ACM Comput. Surv. , 3 , 438 - 479
    10. 10)
      • Andrews, K., Henry, R.R., Yamamoto, W.K.: `Design and implementation of the UW illustrated compiler', Proceedings of the Sigplan’88 conference on Programminglanguage design and implementation, 1988, p. 105–114.
    11. 11)
      • V. Žumer , N. Korbar , M. Mernik . Automatic implementation of programming languages using object oriented approach. J. Syst. Archit. , 203 - 210
    12. 12)
      • C.W. Krueger . Software reuse. ACM Comput. Surv. , 2 , 131 - 183
    13. 13)
      • C. Hankin , H.R. Nielson , J. Palsberg . Position statements on strategic directions for research on programming languages. ACM Sigplan Notices , 1 , 59 - 65
    14. 14)
      • Cartwright, R., Felleisen, M.: `Extensible denotational language specifications', Symposium on Theoretical aspects of computer software, 1994, Sendai, Japan, p. 244–272.
    15. 15)
      • Farrow, R., Marlowe, T.J., Yellin, D.M.: `Composable attribute grammars: Support for modularity in translator design and implementation', Proceedings of 19th Annual ACM Sigplan - Sigact symposium onPrinciples of programming languages, 1992, p. 223–234.
    16. 16)
      • Dong, J.S., Duke, R., Rose, G.: `An object-oriented approach to the semantics of programming languages', Proceedings of 17th Australian Computer science conference, 1994, p. 767–775.
    17. 17)
      • H. Alblas , B. Melichar . (1991) Attribute grammars, applications, and systems, Lecture Notes in Computer Science.
    18. 18)
      • Hedin, G.: `An overview of door attribute grammars', Proceedings of 5th international conference on Compilerconstruction (CC'94), 1994, Lecture Notes in Computer Science 786, Springer-Verlag, p. 31–51.
    19. 19)
      • J.M. Armstrong , R.J. Mitchell . Uses and abuses of inheritance. Softw. Eng. J. , 1 , 19 - 26
    20. 20)
      • U. Kastens , W.M. Waite . Modularity and reusability in attribute grammars. Acta Informatica , 7 , 601 - 627
    21. 21)
      • C.P. Willis . Analysis of inheritance and multiple inheritance. Softw. Eng. J. , 4 , 215 - 226
    22. 22)
      • K. Arnold , J. Gosling , D. Holmes . (2000) The Java programming language.
    23. 23)
      • Mernik, M., Žumer, V.: `Reusability of formal specifications in programming language description', 8th annual workshop on Software reuse WISR-8, 1997, Columbus, Ohio.
    24. 24)
      • Shinoda, Y., Katayama, T.: `Object-oriented extension of attribute grammars and its implementationusing distributed attribute evaluation algorithm', Proceedings of international conference WAGA, 1990, Lecture Notes in Computer Science 461, Springer-Verlag, p. 177–191.
    25. 25)
      • Vaidyanathan, V., Bryant, B.R.: `Formal semantics reuse for different programming languages', CIS-TR-96-010, Technical, 1996.
    26. 26)
      • Steele, G.L.: `Building interpreters by composing monads', Proceedings 21st ACM symposium on Principles of programminglanguages, 1994, p. 472–492.
    27. 27)
      • P. Deransart , M. Jourdan , B. Lorho . (1988) Attribute grammars. definitions, systems, and bibliography, Lecture Notes in Computer Science.
    28. 28)
      • G.D.P. Dueck , G.V. Cormack . Modular attribute grammars. Comp. J. , 2 , 164 - 172
    29. 29)
      • D.E. Knuth . Semantics of context-free languages. Math. Syst. Theory , 2 , 127 - 145
    30. 30)
      • R.W. Gray , V.P. Heuring , S.P. Levi , A.M. Sloane , W.M. Waite . Eli: A complete, flexible compiler construction system. Commun. ACM , 2 , 121 - 131
http://iet.metastore.ingenta.com/content/journals/10.1049/ip-sen_19984920
Loading

Related content

content/journals/10.1049/ip-sen_19984920
pub_keyword,iet_inspecKeyword,pub_concept
6
6
Loading
This is a required field
Please enter a valid email address