skip to main content
10.1145/1863509.1863517acmconferencesArticle/Chapter ViewAbstractPublication PagesicfpConference Proceedingsconference-collections
research-article

Analysis of preprocessor constructs in Erlang

Published: 30 September 2010 Publication History

Abstract

Program analysis and transformation tools work on source code, which - as in the case of Erlang - may contain macros and other preprocessor directives. Such preprocessor constructs have to be treated in an utterly different way than lexical and syntactical constructs. This paper presents an approach to treat preprocessor constructs in a non-invasive way that is reasonably efficient and supports code transformations and analyses in an Erlang specific framework.

References

[1]
}}Syntax Tools Reference Manual. http://www.erlang.org/doc/apps/syntax tools/
[2]
}}Horváth, Z., Lövei, L., Kozsik, T., Kitlei, R., Bozó, I., Tóth, M., Király, R.: Modeling semantic knowledge in Erlang for refactoring, Proceedings of the International Conference on Knowledge Engineering, Principles and Techniques, KEPT 2009, Cluj-Napoca, Romania, Studia Universitatis Babeş-Bolyai, Series Informatica, vol. 54(2009) Sp. Issue
[3]
}}Lövei, L., Hajós, L., Tóth, M.: Erlang Semantic Query Language, On the 8th International Conference on Applied Informatics, ICAI 2010
[4]
}}Király, R., Kitlei, R.: Implementing structural complexity metrics in Erlang, On the 8th International Conference on Applied Informatics, ICAI 2010
[5]
}}Lövei, L., Hoch, Cs., Köllő, H., Nagy, T., Nagyné-Víg, A., Horpácsi, D., Kitlei, R., and Király, R.: Refactoring Module Structure, In Proceedings of the 7th ACM SIGPLAN workshop on Erlang, pages 83--89, Victoria, British Columbia, Canada, Sep 2008.
[6]
}}Sagonas, K., Avgerinos, T.: Automatic Refactoring of Erlang Programs, Proceedings of the 11th ACM SIGPLAN conference on Principles and practice of declarative programming, 2009, pp. 13--26. ACM, Coimbra, Portugal, 2009. ISBN 978-1-60558-568-0.
[7]
}}Li, H., Thompson, S.: Tool support for refactoring functional programs, Proceedings of the 2008 ACM SIGPLAN symposium on Partial evaluation and semantics-based program manipulation, pages 199--203. ACM, New York, NY, USA, 2008. ISBN 978-1-59593-977-7.
[8]
}}Kitlei, R.: Reconstructing syntax in RefactorErl PhD workshop, Central Europen Functional Programming Summer School, May 2009
[9]
}}Kitlei, R., Lövei, L., Tóth, M., Horváth, Z., Kozsik, T., Király, R., Bozó, I., Hoch, C., and Horpácsi, D.: Automated syntax manipulation in RefactorErl In 14th International Erlang/OTP User Conference, Stockholm, Sweden, Nov 2008
[10]
}}Garrido, A.: Program refactoring in the presence of preprocessor directives Ph.D. thesis, Department of Computer Science, University of Illinois at Urbana-Champaign, 2005
[11]
}}Ernst, M. D., Badros, G. J., Notkin, D.: An empirical analysis of C preprocessor use, IEEE Transactions on Software Engineering, vol.28, no. 12, Dec. 2002, pp. 1146--1170.

Cited By

View all
  • (2013)Extending Erlang by utilising RefactorErlProceedings of the twelfth ACM SIGPLAN workshop on Erlang10.1145/2505305.2505314(63-72)Online publication date: 28-Sep-2013
  • (2013)Refactoring tools for functional languagesJournal of Functional Programming10.1017/S095679681300011723:3(293-350)Online publication date: 22-Oct-2013

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
Erlang '10: Proceedings of the 9th ACM SIGPLAN workshop on Erlang
September 2010
92 pages
ISBN:9781450302531
DOI:10.1145/1863509
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]

Sponsors

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 30 September 2010

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. erlang
  2. macro
  3. preprocessor
  4. refactoring

Qualifiers

  • Research-article

Conference

ICFP '10
Sponsor:

Acceptance Rates

Overall Acceptance Rate 51 of 68 submissions, 75%

Upcoming Conference

ICFP '25
ACM SIGPLAN International Conference on Functional Programming
October 12 - 18, 2025
Singapore , Singapore

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)3
  • Downloads (Last 6 weeks)0
Reflects downloads up to 08 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2013)Extending Erlang by utilising RefactorErlProceedings of the twelfth ACM SIGPLAN workshop on Erlang10.1145/2505305.2505314(63-72)Online publication date: 28-Sep-2013
  • (2013)Refactoring tools for functional languagesJournal of Functional Programming10.1017/S095679681300011723:3(293-350)Online publication date: 22-Oct-2013

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media