Glossary (root) Lexicon
Compiles YAML glossaries into a flat map of localized expressions. Used internally by `Glossary` to build a lexicon of lexeme–expression mappings.
concepts
attrs
fields
signatures
⨌ with_locale / 1 (signature)
Head of with_locale/1
⨌ load_all_expressions / 1 (signature)
Head of load_all_expressions/1
⨌ read_yaml / 2 (signature) Signature inference is ambiguous, choose stricter type
Head of read_yaml/2
⨌ mark_as_external / 2 (signature) Signature inference is ambiguous, choose stricter type
Head of mark_as_external/2
⨌ flatten_keys / 2 (signature) Signature inference is ambiguous, choose stricter type
Head of flatten_keys/2
⨌ expand_paths / 2 (signature) Signature inference is ambiguous, choose stricter type
Head of expand_paths/2
⨌ compile / 3 (signature)
Compiles a list of YAML glossary files into a map of keys (`locale.lexeme`) to expressions. Automatically marks each file as an external resource for recompilation tracking.
samples
implements
protocols
defmodule Glossary.Lexicon do
@moduledoc "Compiles YAML glossaries into a flat map of localized expressions.\n\nUsed internally by `Glossary` to build a lexicon of lexeme–expression mappings.\n"
@doc "Head of with_locale/1"
@spec with_locale(String.t()) :: tuple
def with_locale(path) do
end
@doc "Head of read_yaml/2"
@spec read_yaml(String.t(), String.t()) :: any
def read_yaml(file, locale) do
end
@doc "Head of mark_as_external/2"
@spec mark_as_external(list, any) :: any
def mark_as_external(paths, module) do
end
@doc "Head of load_all_expressions/1"
@spec load_all_expressions(list) :: map
def load_all_expressions(paths) do
end
@doc "Head of flatten_keys/2"
@spec flatten_keys(map, atom) :: any
def flatten_keys(yaml, prefix) do
end
@doc "Head of expand_paths/2"
@spec expand_paths(list, String.t()) :: any
def expand_paths(sources, base_path) do
end
@doc "Compiles a list of YAML glossary files into a map of keys (`locale.lexeme`) to expressions.\n\nAutomatically marks each file as an external resource for recompilation tracking.\n"
@spec compile(String.t(), list, any) :: map
def compile(base_path, sources, module) do
end
end
defmodule Glossary.LexiconTest do
use ExUnit.Case, async: true
describe("compile / 3") do
test "" do
end
end
describe("expand_paths / 2") do
test "" do
end
end
describe("flatten_keys / 2") do
test "" do
end
end
describe("load_all_expressions / 1") do
test "" do
end
end
describe("mark_as_external / 2") do
test "" do
end
end
describe("read_yaml / 2") do
test "" do
end
end
describe("with_locale / 1") do
test "" do
end
end
end