diff options
author | Ben Bridle <bridle.benjamin@gmail.com> | 2025-05-29 12:18:16 +1200 |
---|---|---|
committer | Ben Bridle <bridle.benjamin@gmail.com> | 2025-05-29 12:18:28 +1200 |
commit | ff99a5df4c5a3265d215afa4b937fbb95a55b96c (patch) | |
tree | eb299429a57233881c47eb86622498eba841f03e /src/stages/mod.rs | |
download | bedrock-asm-ff99a5df4c5a3265d215afa4b937fbb95a55b96c.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)*); + }}; +} |