optimized brackets

This commit is contained in:
2024-04-12 20:23:51 +02:00
parent a0befc8fa9
commit ac7df0a9fe
4 changed files with 104 additions and 91 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ pub fn transpile(input: String, indent: u32) -> String {
input = auto_strip(input);
}
let mut result = String::new();
let tokens = lex(input.as_str(), true);
let tokens = lex(input.as_str(), false);
println!("\n\n\n\n");
let mut full_ast = Parser::new(tokens.clone());
while full_ast.tokens.len() > full_ast.index as usize {