Unifex v0.2.6 Unifex.SpecsParser View Source

Module that handles parsing Unifex specs for native boilerplate code generation.

For information on how to create such specs, see Unifex.Specs module.

Link to this section Summary

Functions

Parses Unifex specs of native functions.

Link to this section Types

Specs

parsed_specs_t() :: [
  module: module(),
  fun_specs:
    {fun_name :: atom(),
     [{arg_name :: atom(), arg_type :: atom() | {:list, atom()}}],
     return_type :: Macro.t()},
  sends: sent_term_type :: Macro.t(),
  dirty: [{{fun_name :: atom(), fun_arity :: non_neg_integer()}, :cpu | :io}]
]

Link to this section Functions

Specs

parse_specs(specs :: Macro.t()) :: parsed_specs_t()

Parses Unifex specs of native functions.