Searched refs:ParseError (Results 1 – 1 of 1) sorted by relevance
99 pub enum ParseError { enum105 impl ParseError { implementation108 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() argument159 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() argument195 return Err(ParseError::UnexpectedToken(symbol)); in parser()[all …]