erl_syntax
erl_syntax
Module
erl_syntax
Module summary
Abstract Erlang syntax trees.
Description
Abstract Erlang syntax trees.
This module defines an abstract data type for representing Erlang source code as syntax trees, in a way that is backwards compatible with the data structures created by the Erlang standard library parser module erl_parse
(often referred to as "parse trees", which is a bit of a misnomer). This means that all erl_parse
trees are valid abstract syntax trees, but the reverse is not true: abstract syntax trees can in general not be used as input to functions expecting an erl_parse
tree. However, as long as an abstract syntax tree represents a correct Erlang program, the function revert/1
should be able to transform it to the corresponding