skip to main content
10.1145/2160749.2160769acmotherconferencesArticle/Chapter ViewAbstractPublication PagesmmConference Proceedingsconference-collections
research-article

Embeddable framework for syntax-safe source code generation

Published:08 March 2012Publication History

ABSTRACT

Source code generation is an essential part of wide range of applications, including transcompilers, parser generators and preprocessors. The common technology based on code templates is often cumbersome and error-prone. This paper introduces syngen, an automatic tool, written in Scheme, designed to produce frameworks for building syntactically correct fragments of source code.

References

  1. D. Batory. The Road to Utopia: A Future for Generative Programming. In C. Lengauer, D. Batory, C. Consel, and M. Odersky, editors, Domain-Specific Program Generation, volume 3016 of Lecture Notes in Computer Science, pages 211--250. Springer Berlin/Heidelberg, 2004.Google ScholarGoogle Scholar
  2. K. Czarnecki and U. Eisenecker. Generative programming: methods, tools, and applications. Addison Wesley, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. K.-G. Doh, H. Kim, and D. Schmidt. Abstract Parsing: Static Analysis of Dynamically Generated String Output Using LR-Parsing Technology. In J. Palsberg and Z. Su, editors, Static Analysis, volume 5673 of Lecture Notes in Computer Science, pages 256--272. Springer Berlin/Heidelberg, 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. T. Hasu. Programmatic Building of Models Just for Pretty Printing. In Proceedings of OOPSLA Workshop on Domain-Specific Modeling (DSM), Portland, Oregon, USA, Oct. 2006.Google ScholarGoogle Scholar
  5. J. Heering, P. R. H. Hendriks, P. Klint, and J. Rekers. The syntax definition formalism SDF --- reference manual. SIGPLAN Not., 24:43--75, November 1989. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. J. Hopcroft, R. Motwani, and J. Ullman. Introduction to automata theory, languages, and computation. Pearson/Addison Wesley, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. S. Johnson. Yacc: yet another compiler-compiler. Computing science technical report. Bell Laboratories, 1978.Google ScholarGoogle Scholar
  8. Z. László and C. Somogyi. A Tool for Generating Java Source Efficiently. In Proceedings on the 9th World Multi-Conference on Systemics, Cybernetics and Informatics, pages 392--395, 2005.Google ScholarGoogle Scholar
  9. P. M. Maurer. The design and implementation of a grammar-based data generator. Software: Practice and Experience, 22(3):223--244, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. M. D. McIlroy. Macro instruction extensions of compiler languages. Commun. ACM, 3:214--220, April 1960. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. MSDN Library. Generating and Compiling Source Code Dynamically in Multiple Languages. http://msdn.microsoft.com/en-us/library/650ax5cx(vs.71).aspx, 2004.Google ScholarGoogle Scholar
  12. N. Ramsey. Unparsing expressions with prefix and postfix operators. Software --- Practice & Experience, 28:1327--1356, October 1998. Google ScholarGoogle ScholarDigital LibraryDigital Library
  13. P. Thiemann. Grammar-based analysis of string expressions. In Proceedings of the 2005 ACM SIGPLAN international workshop on Types in languages design and implementation, TLDI '05, pages 59--70, New York, NY, USA, 2005. ACM. Google ScholarGoogle ScholarDigital LibraryDigital Library
  14. M. van den Brand and E. Visser. Generation of formatters for context-free languages. ACM Trans. Softw. Eng. Methodol., 5:1--41, January 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Embeddable framework for syntax-safe source code generation

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      HCCE '12: Proceedings of the 2012 Joint International Conference on Human-Centered Computer Environments
      March 2012
      277 pages
      ISBN:9781450311915
      DOI:10.1145/2160749

      Copyright © 2012 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 8 March 2012

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article

      Acceptance Rates

      HCCE '12 Paper Acceptance Rate48of81submissions,59%Overall Acceptance Rate48of81submissions,59%
    • Article Metrics

      • Downloads (Last 12 months)2
      • Downloads (Last 6 weeks)0

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader