Packages

A simple DSL to define parsers / transformers for LL(1) structured inputs.

Current section

Files

Jump to
grammar mix.exs
Raw

mix.exs

defmodule Project do
use Mix.Project
def project do
[
app: :grammar,
version: "0.1.0",
elixirc_options: [warnings_as_errors: true],
elixirc_paths: elixirc_paths(Mix.env()),
consolidate_protocols: Mix.env() != :test,
deps: deps(),
aliases: aliases(),
name: "Grammar",
source_url: "https://github.com/nmichel/ex_grammar",
docs: docs(),
description: description(),
package: package()
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.31", only: :dev, runtime: false}
]
end
defp aliases do
[
check: [
"format --check-formatted",
"credo --strict",
"dialyzer"
]
]
end
defp docs do
[
main: "README",
extras: ["README.md", "LICENSE.md", "examples/math_to_french.md", "examples/math_to_function.md", "examples/ip_list.md"],
groups_for_extras: [
Examples: Path.wildcard("examples/*.md")
],
groups_for_modules: [
Internal: [~r/^Grammar.CodeGen/, Grammar.Tokenizer]
],
source_ref: "master"
]
end
defp description do
"""
A simple DSL to define parsers / transformers for LL(1) structured inputs.
"""
end
defp package do
[
licenses: ["MIT"],
maintainers: ["Nicolas Michel"],
links: %{"GitHub" => "https://github.com/nmichel/ex_grammar"}
]
end
end