diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-05-22 15:58:34 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-05-22 15:59:00 +1200 |
commit | 204896ef6887969ac218fada7c5919ea4e275732 (patch) | |
tree | 0dd2c79e3a12eb60c95362372723c2a18c7c7820 /src/stages/mod.rs | |
download | bedrock-asm-204896ef6887969ac218fada7c5919ea4e275732.zip |
Initial commit
Diffstat (limited to 'src/stages/mod.rs')
-rw-r--r-- | src/stages/mod.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/stages/mod.rs b/src/stages/mod.rs new file mode 100644 index 0000000..76bda0d --- /dev/null +++ b/src/stages/mod.rs @@ -0,0 +1,26 @@ +mod compiler; +mod syntactic; +mod syntactic_tokens; +mod semantic; +mod semantic_tokens; +mod bytecode; +mod bytecode_tokens; +pub use compiler::*; +pub use syntactic::*; +pub use syntactic_tokens::*; +pub use semantic::*; +pub use semantic_tokens::*; +pub use bytecode::*; +pub use bytecode_tokens::*; + + +#[macro_export] +macro_rules! indent { + (0, $($tokens:tt)*) => {{ + println!($($tokens)*); + }}; + ($indent:expr, $($tokens:tt)*) => {{ + for _ in 0..$indent { print!(" "); } + println!($($tokens)*); + }}; +} |