xerions/mix_dia_compiler

Name: mix_dia_compiler

Owner: xerions

Description: Diameter source files compiler for Mix and Elixir

Created: 2016-07-06 15:46:29.0

Updated: 2017-07-07 19:00:04.0

Pushed: 2016-07-10 12:42:23.0

Homepage:

Size: 13

Language: Elixir

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

MixDiaCompiler Build Status

A Diameter source files compiler for mix. It was inspired by rebar_dia_compiler and it should work the same way expect dia_first_files option.

There are some unresolved questions:

  1. Diameter sources have the inherits and it requires the correct file order. If b inherits a then a should be compiled before b. In rebar_dia_compiler it is solved by dia_first_files but it is not possible to add that kind of option to this compile so I may suggest to use alphabetic order to naming dia sources for now.

  2. Diameter compiler generates erl and hrl file. It is possible in Elixir to work with records from hrl file but I don't know a good way to work with defined constants.

Installation

If available in Hex, the package can be installed as:

  1. Add mix_dia_compiler to your list of dependencies in mix.exs:

    def deps do
      [{:mix_dia_compiler, "~> 0.1.0"}]
    end
    
  2. Add :dia to compilers:

    def application do
      compilers: [:dia, :erlang, :elixir, :app],
    end
    

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.