Skip to main content

backhopper_xref_reader/
lib.rs

1// Copyright (C) 2026 Michael S. Klishin and Contributors
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// See LICENSE-APACHE and LICENSE-MIT for details.
4
5//! Erlang source to call-graph reader for `backhopper-xref`.
6//!
7//! Walks `.erl` source through a minimal tokenizer and produces
8//! [`ModuleData`] records containing exports, imports, behaviours,
9//! callbacks, and call sites (with span-precise locations).
10
11pub mod application;
12pub mod errors;
13pub mod macros;
14pub mod model;
15pub mod reader;
16pub mod scanner;
17pub mod suite_matcher;
18
19pub use application::{ApplicationAssignment, ProjectLayout};
20pub use errors::{ReadError, ReadWarning};
21pub use macros::{MacroKey, MacroTable, parse_define};
22pub use model::{CallSite, ModuleData, ReadOutput};
23pub use reader::SourceReader;
24pub use suite_matcher::AstSuiteMatcher;