# Rmacro - a macro utility like the one of Common Lisp for Ruby

**URL:** <https://www.ruby-forum.com/t/rmacro-a-macro-utility-like-the-one-of-common-lisp-for-ruby/171069>\
**Category:** Ruby\
**Created:** [June 25, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/rmacro-a-macro-utility-like-the-one-of-common-lisp-for-ruby/171069 "2009-06-25T23:40:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [June 25, 2009, 11:40pm UTC](https://www.ruby-forum.com/t/rmacro-a-macro-utility-like-the-one-of-common-lisp-for-ruby/171069/1 "2009-06-25T23:40:45Z")

</div>

This utility includes ‘gensym, macro\_expand, bq(backquote of Lisp), c  
(comma of Lisp), …’.

You can require a file which use macros by ‘require\_with\_macro  
(required\_name, delete\_expanded\_file, \*macro\_objs)’

I made this about three months ago. At that time, I thought I should  
make the manual and the better examples of macro use like monads than  
this trivial control structures before the release. Now I realize that  
I can’t have enough time to complete this job. So I gave up writing  
the manual. Maybe you can see how to use it in comments and unit  
tests.

You can download it from this address:  
[http://lisp.tistory.com/attachment/removed\_email\_address@domain.invalid](http://lisp.tistory.com/attachment/removed_email_address@domain.invalid)

Shamefully, I don’t know how to make a gem. I would appreciate it if  
someone could make this as a gem.
