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

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);
}