diff options
| author | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 14:30:14 -0500 |
|---|---|---|
| committer | nic-gaffney <gaffney_nic@protonmail.com> | 2023-04-18 14:30:14 -0500 |
| commit | 2418d68631f6e338251f2d988de2d3fde206982b (patch) | |
| tree | dd88997ec1f981a65d8d6e2713461dcc93f462db | |
| parent | 14e34da22f00ef7464eff2c193e645cf419d1edb (diff) | |
| download | sloth-2418d68631f6e338251f2d988de2d3fde206982b.tar.gz | |
Ran cargo-fmt again :)
| -rw-r--r-- | crates/sloth/src/main.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/sloth/src/main.rs b/crates/sloth/src/main.rs index 8fad9a7..ef27570 100644 --- a/crates/sloth/src/main.rs +++ b/crates/sloth/src/main.rs @@ -11,8 +11,8 @@ pub mod lexer; pub mod parser; use std::collections::HashMap; -use std::{env, fs}; +// use std::{env, fs}; use itertools::Itertools; use lexer::Lexer; use parser::AstParser; @@ -35,21 +35,21 @@ fn main() { // println!("Error while reading '{source_path}'"); // return; // }; - let source = " 3 + 7 ;"; - let source = r#" - - fn hello() -> int { - return 3 + 7; - } + // let source = " 3 + 7 ;"; + // let source = r#" - hello(); - hello(); - hello(); - hello(); - hello(); - hello(); - - "#; + // fn hello() -> int { + // return 3 + 7; + // } + + // hello(); + // hello(); + // hello(); + // hello(); + // hello(); + // hello(); + + // "#; let source = r#" fn hello() -> int { |
