2024-12-11 08:02:07 +00:00
|
|
|
defmodule UkraineTaxidEx.BaseParser do
|
2024-12-12 06:32:31 +00:00
|
|
|
@type options :: [normalize?: boolean, clean?: boolean]
|
2024-12-11 08:02:07 +00:00
|
|
|
@callback parse(string :: String.t(), options :: options()) :: {:ok, term} | {:error, atom}
|
|
|
|
|
|
|
|
defmacro __using__(_) do
|
|
|
|
quote do
|
|
|
|
@behaviour UkraineTaxidEx.BaseParser
|
|
|
|
|
|
|
|
alias UkraineTaxidEx.BaseParser
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|