Diesel behaviour (diesel v0.5.3)
Declarative programming in Elixir
Diesel is a toolkit that helps you build your own DSLs.
Usage:
defmodule MyApp.Fsm do
use Diesel,
otp_app: :my_app,
dsl: MyApp.Fsm.Dsl,
parsers: [
...
],
generators: [
...
]
end
For more information on how to use this library, please check:
- the
Diesel.Dsl
andDiesel.Tag
modules, - the guides and tutorials provided in the documentation
- the examples used in tests
Summary
Callbacks
Compiles the raw definition and returns a compiled version of it
Returns the raw definition for the dsl, before compilation
Callbacks
Link to this callback
compile(context)
Compiles the raw definition and returns a compiled version of it
The obtained structure is the result of applying the configured list of parsers to the raw internal definition and then compiling it according to the rules implemented by packages.
Link to this callback
definition()
@callback definition() :: term()
Returns the raw definition for the dsl, before compilation