Is there a builtin function that will do foo.ex → AST (just parsing)

Let foo.ex in proj/lib/…/foo.ex be a syntactically correct elixir file.

Is there a builtin function that will do foo.ex → AST (just parsing).

The end goal here is I want to see if there is an easy way to display elixir code in s-expr style.

See Code.string_to_quoted/2.

3 Likes