summaryrefslogtreecommitdiff
path: root/src/syntax/mod.rs
diff options
context:
space:
mode:
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)]