1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pub mod file_walker;
pub mod interpreter;
pub mod parser;
pub mod tokenizer;
pub mod tree_nodes;
use file_walker::file_walker::FileWalker;
use parser::scope::Scope;
use std::env;
pub fn generate() {
let path = env::current_dir().expect("Could not read current directory");
FileWalker::walk_directory(&path);
}
pub fn generate_with_scope(scope: &mut Scope) {
let path = env::current_dir().expect("Could not read current directory");
FileWalker::walk_directory_with_scope(&path, scope);
}