From 30d91f57ad954a930871abb4d9bfe9028b66f0b9 Mon Sep 17 00:00:00 2001 From: Lino Le Van <11367844+lino-levan@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:35:51 -0800 Subject: [PATCH] chore: move printer into a seperate folder --- compiler/src/lib.rs | 4 ++-- compiler/src/{walker.rs => printer/mod.rs} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename compiler/src/{walker.rs => printer/mod.rs} (100%) diff --git a/compiler/src/lib.rs b/compiler/src/lib.rs index d09edd2a279a2ed694d425f1b0f2f7acf6d3a8d9..620f35e5419e15c1ef1aff95a41adf78f40590a9 100644 --- a/compiler/src/lib.rs +++ b/compiler/src/lib.rs @@ -2,7 +2,7 @@ use miette::Result; pub mod ast; pub mod tokenizer; -pub mod walker; +pub mod printer; pub mod util; @@ -14,7 +14,7 @@ pub fn transpile(content: String) -> Result { // 3. Type check the AST // type_check(tree.clone())?; // 4. Transpile the AST into javascript - let result = walker::transpile(tree)?; + let result = printer::transpile(tree)?; // 5. Return the javascript return Ok(result); } diff --git a/compiler/src/walker.rs b/compiler/src/printer/mod.rs similarity index 100% rename from compiler/src/walker.rs rename to compiler/src/printer/mod.rs -- 2.54.0