cambridge-asm 0.1.4

Run pseudoassembly from Cambridge International syllabus 9618
// Copyright (c) 2021 Saadi Save
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

#![warn(clippy::pedantic)]

#[macro_use]
extern crate pest_derive;

use std::path::PathBuf;

use clap::{App, load_yaml};

fn main() {
    let yaml = load_yaml!("cli.yml");    
    let opts = App::from_yaml(yaml).get_matches();
    
    let input = opts.value_of_os("INPUT").unwrap();

    let path = PathBuf::from(input);

    let mut exec = parse::parse(&path);

    exec.exec();
}

mod exec;
mod parse;