Writing a domain specific macro processor in ruby

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?

Handy G. wrote:

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.

On Tue, Sep 7, 2010 at 9:15 AM, Handy G. [email protected]
wrote:

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?

On Sep 7, 10:13 am, Caleb C. [email protected] wrote:

On Tue, Sep 7, 2010 at 9:15 AM, Handy G. [email protected] wrote:

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?

and what’s wrong with m4?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs