Implement a basic parser, with snapshot testing

This commit is contained in:
2024-06-01 11:01:01 -07:00
parent fe21c1a792
commit 4730f11f31
6 changed files with 327 additions and 2 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
mod lang;
mod preprocess;
mod world;
use std::{env, error::Error, fs, process::exit};
use world::World;
use crate::lang::scan;
use crate::preprocess::scan::scan;
fn to_latin1(bytes: &[u8]) -> String {
bytes.iter().map(|&x| x as char).collect()