Generating type specs programmatically
Mon Dec 7 18:25:22 CET 2020
On Mon, 7 Dec 2020 at 14:25, Viktor Söderqvist <viktor@REDACTED>
> Hi! Generated examples of all of Erlang's AST is in the generated
> README.md of this repo:
Thanks! That's a reference document I'll definitely bookmark.
> Some examples:
> -spec my_function() -> ok.
> -spec my_function(A :: atom()) -> B when B :: boolean().
> If some syntactic element is missing, please let me know.
> On 2020-12-05 21:24, Guilherme Andrade wrote:
> > All is well so far, but now I want to generate type specs and function
> > specs with which to annotate the generated code - and I can't for the
> > life of me figure out how to do it within `erl_syntax`.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions