Extract parser into its own submodule
This commit is contained in:
parent
dc24bbc883
commit
d8ec2e6c3a
6 changed files with 43 additions and 56 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue