mirror of
https://github.com/valitydev/parse_trans.git
synced 2024-11-06 08:35:17 +00:00
1ec65427e4
'$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. |
||
---|---|---|
.. | ||
ct_expand_test.erl | ||
ex1.erl | ||
ex_codegen.erl | ||
Makefile | ||
test_exprecs.erl | ||
test_pt.erl | ||
test.erl |