[erlang-questions] beta release of merl - metaprogramming in Erlang

Richard Carlsson <>
Fri Feb 21 20:34:21 CET 2014

I got some feedback from a happy user (hi Andreas!) who gave me 
permission to post this example of his to the list, to show off the 
improvements in readability when using merl compared to using the 
erl_syntax API directly:



> On Tuesday, February 4, 2014 12:55 PM, Richard Carlsson
> <> wrote:
>     So, I finally got around to releasing Merl to Github, under an Apache 2
>     license:
>     https://github.com/richcarl/merl
>     I talked about it two years ago in San Francisco:
>     http://www.youtube.com/watch?v=RA7QcMNBKfg
>     Slides here:
>     http://www.erlang-factory.com/conference/ErlangUserConference2012/speakers/RichardCarlsson
>     See the edoc overview for documentation, and the examples/ subdirectory
>     for example code.
>     Currently missing: I'd like to have a good API for working with a
>     "module" as an ADT, easily adding and removing definitions and querying
>     the current state, and also reading an existing module from file or as
>     an AST in a parse transform. The file "examples/merl_build.erl" is a
>     start, but I don't have time right now to work more on that. Useful
>     sources of inspiration for such an API are
>     https://github.com/yariv/erlyweb/blob/master/src/smerl/smerl.erl
>     <https://github.com/yariv/erlyweb/blob/master/src/smerl/smerl.erl>and
>     https://github.com/uwiger/parse_trans.
>        /Richard
>     _______________________________________________
>     erlang-questions mailing list
>      <mailto:>
>     http://erlang.org/mailman/listinfo/erlang-questions

More information about the erlang-questions mailing list