Diesel behaviour (diesel v0.7.1)

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 and Diesel.Tag modules,
  • the guides and tutorials provided in the documentation
  • the examples used in tests

Summary

Callbacks

Returns the raw definition for the dsl, before compilation

Types

@type element() :: {tag(), keyword(), [element()]}
@type tag() :: atom()

Callbacks

@callback definition() :: element()

Returns the raw definition for the dsl, before compilation