Writing a domain specific macro processor in ruby

H

Handy Gandy

I'm thinking of something like the m4 processor ( of autotools fame or
infamy ), but with only a few domain specific built-in macros.

Can anyone offer some helpful hints?
 
B

Brian Candler

Handy said:
Can anyone offer some helpful hints?

Look at existing text/template expansion projects first, e.g.
* erb / erubis
* liquid
* moustache

Google "ruby templating" for more. Some are geared towards generating
HTML, but others are more general-purpose.
 
C

Caleb Clausen

I'm thinking of something like the m4 processor ( of autotools fame or
infamy ), but with only a few domain specific built-in macros.

Can anyone offer some helpful hints?

What is the application? What is the target language?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,244
Members
46,839
Latest member
MartinaBur

Latest Threads

Top