Extend the Definelang programming language from this chapter such that it supports declaring macros and macro expansion.
Question:
Extend the Definelang programming language from this chapter such that it supports declaring macros and macro expansion.
A macro definition takes the following form:
The macros described in the exercise were a simplified form of a more general idea known as template metaprogramming. Template metaprogramming, broadly, refers to a collection of techniques that consume user-facing syntax to generate more source code at compile time. Template metaprogramming is utilized by a number of programming languages (most notably C++), but also in Haskell and Curl.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
An Experiential Introduction To Principles Of Programming Languages
ISBN: 9780262045452
1st Edition
Authors: Hridesh Rajan
Question Posted: