Home
last modified time | relevance | path

Searched refs:ParseError (Results 1 – 1 of 1) sorted by relevance

/NovaShell/src/
H A Dparser.rs99 pub enum ParseError { enum
105 impl ParseError { implementation
108 ParseError::UnexpectedInput(str) => eprintln!("Unexpected input: \"{str}\""), in handle()
109 ParseError::UnsupportedToken(str) => eprintln!("Unsupported token: \"{str}\""), in handle()
110 ParseError::UnexpectedToken(str) => eprintln!("Unexpected token: \"{str}\""), in handle()
122 fn lexer(input: &str) -> Result<Vec<Token>, ParseError> { in lexer() argument
159 return Err(ParseError::UnsupportedToken(token_str.to_string())); in lexer()
168 return Err(ParseError::UnexpectedInput(remaining_input.to_string())); in lexer()
174 fn parser(tokens: Vec<Token>) -> Result<Vec<Pipeline>, ParseError> { in parser() argument
195 return Err(ParseError::UnexpectedToken(symbol)); in parser()
[all …]