reic 0.1.0

A compiler that just works
Documentation
use log::info;
use reic::{
    lexer::{Parser, tokenise, Token, tokenise_into_parser},
    parser::parse_tokens,
    project::open_project,
};
use simple_logger::SimpleLogger;
use std::fs::read_to_string;
use std::{env, ops::Range};
use std::{path::Path, process::exit};

/// Usage: reic <files.rei>. Output: JSON | pasm
fn main() {
    // INIT LOGGING
    SimpleLogger::new()
        .without_timestamps()
        .env()
        .init()
        .unwrap();
    info!("Logger Initialised");

    // 1. handle reic file.rei

    // Take in command line args
    let args: Vec<String> = env::args().collect();

    // Check if there are enough args
    if args.len() < 2 {
        println!("Usage: reic <file.rei>");
        return;
    }

    let mut res = tokenise_into_parser(&open_project(&args));

    // Parse the file contents
    let astnode = parse_tokens(res);
    info!("{:?}", &astnode);

    // just run cargo run rei_inputs/hello_world.rei
}