From 7fcad452b87c8bd31a9b7dfba78c1b1a92d33dd9 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 1 Oct 2020 15:03:37 +0200 Subject: =?UTF-8?q?Reorganize=20ast=20types=20=F0=9F=8F=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/syntax/mod.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/syntax/mod.rs') 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)] -- cgit v1.2.3