summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-01 15:03:37 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-01 15:03:37 +0200
commit7fcad452b87c8bd31a9b7dfba78c1b1a92d33dd9 (patch)
treec1e82792456be54fd41e7b143be302dcd874e30b /src/syntax/mod.rs
parentaafd3c95cacd829b647cfab1533de5d4833b9a04 (diff)
Reorganize ast types 🏕
Diffstat (limited to 'src/syntax/mod.rs')
-rw-r--r--src/syntax/mod.rs14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs
index 0809d33f..f4472df5 100644
--- a/src/syntax/mod.rs
+++ b/src/syntax/mod.rs
@@ -1,12 +1,24 @@
//! Syntax types.
+mod expr;
+mod ident;
+mod lit;
mod span;
mod token;
mod tree;
+/// Abstract syntax tree definition.
+pub mod ast {
+ use super::*;
+ pub use expr::*;
+ pub use lit::*;
+ pub use tree::*;
+}
+
+pub use ast::*;
+pub use ident::*;
pub use span::*;
pub use token::*;
-pub use tree::*;
/// Decorations for semantic syntax highlighting.
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]