summaryrefslogtreecommitdiff
path: root/src/macro_processor/main.rs
blob: 5575aa676c712a42fba79b8b05de88ab3f89232b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use std::env;
use std::fs;
use skaldpress::macro_processor::MacroProcessor;

fn main() {
    let args: Vec<String> = env::args().collect();
    let input_file = fs::read_to_string(&args[1]).expect("Failed to read input file");
    
    let mut macro_processor = MacroProcessor::new();
    let final_output = macro_processor.process_input(&input_file);
    println!("{}", final_output);
}