To parse a CoreErlang file in Erlang and get a corresponding AST, the modules cerl, core_scan, and core_parse from the standard library can be used.
cerl
core_scan
core_parse