hltas 0.9.0

Reading and writing Half-Life TAS scripts (`.hltas`).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate hltas;

use std::{env::args, fs::read_to_string};

use hltas::HLTAS;

fn main() {
    let filename = args().nth(1).unwrap();
    let contents = read_to_string(filename).unwrap();
    match HLTAS::from_str(&contents) {
        Ok(hltas) => println!("{:#?}", hltas),
        Err(e) => println!("{}", e),
    }
}