rebar_sesterl: A Rebar3 plugin for building Sesterl programs

July 11, 2021 ยท View on GitHub

How to use

  1. Generate ./rebar.config from ./sesterl.yaml by Sesterl:

    $ sesterl config ./
    

    The command above writes the following description to rebar.config:

    {plugins, [
      {rebar_sesterl, {git, "https://github.com/gfngfn/rebar_sesterl_plugin.git", {branch, "master"}}}
    ]}.
    
    {src_dirs, ["src", "_generated"]}.
    

    Here, ./src is used not only for putting Sesterl sources but also for foo.app.src.

  2. Invoke:

    $ rebar3 sesterl compile
    

    Then, by using ./sesterl.yaml, Sesterl generates Erlang code in ./_generated, before rebar3 compiles the resulting Erlang code.

    You can also compile and run tests by:

    $ rebar3 sesterl test