mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-16 15:08:45 +00:00
Add assignment 4
This commit is contained in:
19
src/assignments/assignment04/parser.rs
Normal file
19
src/assignments/assignment04/parser.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
//! Parser.
|
||||
|
||||
use super::syntax::*;
|
||||
use anyhow::Result;
|
||||
|
||||
#[allow(missing_docs)]
|
||||
#[allow(missing_debug_implementations)]
|
||||
mod inner {
|
||||
use pest_derive::*;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[grammar = "assignments/assignment04/syntax.pest"]
|
||||
pub(crate) struct SyntaxParser;
|
||||
}
|
||||
|
||||
/// Parses command.
|
||||
pub fn parse_command(line: &str) -> Result<Command> {
|
||||
todo!("fill here")
|
||||
}
|
||||
Reference in New Issue
Block a user