Skip to main content

lutra_compiler/pr/
mod.rs

1//! PR, or "Parser Representation" is an AST representation of parsed source code.
2//! It takes LR tokens and converts them into a more structured form which
3//! understands expressions, such as tuples & functions.
4
5pub use def::*;
6pub use expr::*;
7pub use literal::*;
8pub use ops::*;
9pub use path::*;
10pub use types::*;
11
12mod def;
13mod expr;
14mod literal;
15mod ops;
16mod path;
17mod types;
18mod utils;
19
20#[derive(Debug)]
21pub struct Source {
22    pub is_submodule: bool,
23    pub root: ModuleDef,
24
25    pub span: crate::Span,
26}