parse_trans/examples
Klas Johansson 1ec65427e4 Inject an abstract form when '$form' is seen
'$form' works much like '$var', only that it makes it possible to
inject ready-made abstract forms into the generated
functions/expressions.  The following call:

  gen(Name, F) ->
     codegen:gen_function(Name, fun(X) -> X =:= {'$form',F} end).

generates the following if called like this: gen(is_foo, {atom,0,foo})

  is_foo(X) ->
     X =:= foo.
2010-10-26 21:23:11 +02:00
..
ct_expand_test.erl forgot to add new files 2009-09-11 09:29:39 +00:00
ex1.erl forgot to add new files 2009-09-11 09:29:39 +00:00
ex_codegen.erl Inject an abstract form when '$form' is seen 2010-10-26 21:23:11 +02:00
Makefile added pos functions to exprecs 2010-02-25 07:34:17 -05:00
test_exprecs.erl added pos functions to exprecs 2010-02-25 07:34:17 -05:00
test_pt.erl ported ct_expand, bug fixes 2009-09-11 09:27:16 +00:00
test.erl examples Makefile 2010-01-07 17:51:31 +00:00