Dogma v0.1.16 Dogma.Util.AST

Utility functions for analyzing and categorizing AST asts

Summary

Functions

Returns true if the ast x is a literal

Functions

literal?(x)

Returns true if the ast x is a literal

Examples:

iex> Dogma.Util.AST.literal?( "foo" )
true

iex> Dogma.Util.AST.literal?({:foo, [], Elixir})
false