Files
texrra-engine/crates/texrra-core/src/source.rs
T
gloamxun bb1d9e0561 Initial texrra engine
Rename the crate, binary, core crate, font families, env vars, and internal commands from texcraft/tex-engine to texrra. Serve the separately versioned texrra-web frontend from TEXRRA_WEB_DIR, ../web, or ./web instead of embedding index.html. Add starred section heading support and an arXiv template conformance fixture.
2026-10-19 11:41:46 +08:00

17 lines
397 B
Rust

use std::path::PathBuf;
/// Where a TeX source location originated.
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub enum SourceOrigin {
File(PathBuf),
Terminal,
}
/// A one-based source position owned independently of a runtime adapter.
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
pub struct SourceLocation {
pub origin: SourceOrigin,
pub line: usize,
pub column: usize,
}