Extract parser into its own submodule

This commit is contained in:
Joscha 2021-11-08 12:22:51 +00:00
parent dc24bbc883
commit d8ec2e6c3a
6 changed files with 43 additions and 56 deletions

View file

@ -3,11 +3,11 @@ use std::process;
use structopt::StructOpt;
use crate::parser::Parser;
use crate::parse::Parser;
use crate::source::SourceFiles;
mod commands;
mod parser;
mod parse;
mod source;
#[derive(Debug, StructOpt)]
@ -31,7 +31,7 @@ fn main() {
let mut parser = Parser::new(file, content);
let commands = match parser.parse(parser::commands::parse) {
let commands = match parser.parse(parse::parse_commands) {
Ok(result) => result,
Err(es) => {
files.emit_all(&es);