Hi, akavel. I think that your method of designing macros differ from other contributers in that you use newTree for constructing the AST. Therefore, I modified your syntax a little, to facilitate comparison with Vindaar contributions. Your contribution is in chapter 11. It is the only example in the whole book of using newTree. By the way, I am thinking about defining cons, car and cdr in order to possibilitate Lisp style macros. An interpreter would replace the Lisp constructor with newTree. Thus, a programmer used to Lisp could easily write macros in Nim. Tomorrow, I will elaborate on this idea.
- Re: Requesting examples of macros in Nim Stefan_Salewski
- Re: Requesting examples of macros in Nim Stefan_Salewski
- Re: Requesting examples of macros in Nim juancarlospaco
- Re: Requesting examples of macros in Nim kcvinu
- Re: Requesting examples of macros in Nim kcvinu
- Re: Requesting examples of macros in Nim kcvinu
- Re: Requesting examples of macros in Nim akavel
- Re: Requesting examples of macros in Nim jxy
- Re: Requesting examples of macros in Nim geohuz
- Re: Requesting examples of macros in Nim edu500ac
- Re: Requesting examples of macros in Nim edu500ac
- Re: Requesting examples of macros in Nim mratsim
- Re: Requesting examples of macros in Nim edu500ac
- Re: Requesting examples of macros in Nim edu500ac
- Re: Requesting examples of macros in Nim mratsim
- Re: Requesting examples of macros in Nim mratsim
