Helpers for defining public macro wrappers around DSL scope modules.
Summary
Functions
Import public macro-definition helpers.
Defines a block macro with start and finish calls.
Defines a macro that expands to a single call.
Expand variables in a quoted template with caller-provided AST bindings.
Functions
Import public macro-definition helpers.
Defines a block macro with start and finish calls.
defblock project(name, opts \ []) do
start MyScope.start_project(name, opts)
finish MyScope.finish_project()
endPass source: true to make a source variable available to start and
finish expressions. The generated macro uses DSL.Source.escape_caller/1.
Defines a macro that expands to a single call.
defdirective providers(providers) do
MyScope.put_providers(providers)
end
Expand variables in a quoted template with caller-provided AST bindings.