bitsy-parser 0.710.1

A parser and utilities for working with Bitsy game data
Documentation
1
2
3
4
5
6
7
8
9
10
use bitsy_parser::Game;
use std::{env, fs};

const SYNTAX_ERROR: &str = "No input path specified. Usage: `bitsy-validate filepath`";

fn main() {
    let input = env::args().nth(1).expect(SYNTAX_ERROR);
    Game::from(fs::read_to_string(input).unwrap()).unwrap();
    println!("OK!");
}