MetaOCaml Theory and Implementation
Abstract
Quasi-quotation (or, code templates) has long been used as a convenient tool for code generation, commonly implemented as a pre-processing/translation into code-generation combinators. The original MetaOCaml was also based on such translation, done post type checking. BER MetaOCaml employs a significantly different, efficient (especially in version N114) translation integrated with type-checking, in the least intrusive way. This paper presents the integrated efficient translation for the first time.
- Publication:
-
arXiv e-prints
- Pub Date:
- September 2023
- DOI:
- 10.48550/arXiv.2309.08207
- arXiv:
- arXiv:2309.08207
- Bibcode:
- 2023arXiv230908207K
- Keywords:
-
- Computer Science - Programming Languages;
- D.3.4;
- D.3.3
- E-Print:
- Peer-reviewed, accepted for presentation and presented at the ACM SIGPLAN OCAML 2023 workshop