Glossary.Lexicon (Glossary v0.2.0)

View Source

Compiles YAML glossaries into a flat map of localized expressions.

Used internally by Glossary to build a lexicon of lexeme–expression mappings.

Summary

Functions

Compiles a list of YAML glossary files into a map of keys (locale.lexeme) to expressions.

Functions

compile(base_path, sources, module)

@spec compile(String.t(), [String.t()], module()) :: map()

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.