gfngfn / rebar_sesterl_plugin

A Rebar3 plugin for compiling Sesterl programs (https://github.com/gfngfn/Sesterl)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rebar_sesterl: A Rebar3 plugin for building Sesterl programs

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

About

A Rebar3 plugin for compiling Sesterl programs (https://github.com/gfngfn/Sesterl)


Languages

Language:Erlang 100.0%