Play around with line-wise parsing

This commit is contained in:
Joscha 2021-11-17 23:48:09 +01:00
parent b89ed3e2df
commit 9c9e5764f2
4 changed files with 138 additions and 11 deletions

View file

@ -5,7 +5,9 @@ use crate::commands::Command;
use self::line::parse_lines;
mod error;
mod line;
mod parser;
pub fn parse(file: &Path) -> anyhow::Result<Vec<Command>> {
let content = fs::read_to_string(file)?;