Started to move things over

Moved over some objects and function declarations. Migrating the implementation will be the fun part
This commit is contained in:
kdeng00
2023-08-22 21:20:11 -04:00
parent a475c94628
commit c1484ab49d
2 changed files with 68 additions and 1 deletions
+29 -1
View File
@@ -1,3 +1,31 @@
use std::env;
mod parser;
fn main() {
println!("Hello, world!");
let args: Vec<String> = env::args().collect();
if args.len() < 2 {
println!("Provide path to file");
return;
}
let filepath: &String = args.get(1).unwrap();
println!("Filepath is: {:?}", filepath);
let myparser = parser::parser::NumberParser
{
filepath: filepath.clone()
};
myparser.prompt();
let rawvalues = myparser.filedump();
let parsed_values = myparser.updatevalues(rawvalues);
myparser.removedups(&parsed_values);
myparser.print_values(&parsed_values);
myparser.save_file(parsed_values);
}