Searched refs:Token (Results 1 – 1 of 1) sorted by relevance
14 pub enum Token { enum122 fn lexer(input: &str) -> Result<Vec<Token>, ParseError> { in lexer() argument145 tokens.push(Token::Word(token_str[1..token_str.len() - 1].to_string())); in lexer()147 tokens.push(Token::Word(Self::parse_env(&token_str[1..]))); in lexer()161 tokens.push(Token::Symbol(token_str.to_string())); in lexer()163 tokens.push(Token::Word(token_str.to_string())); in lexer()174 fn parser(tokens: Vec<Token>) -> Result<Vec<Pipeline>, ParseError> { in parser()182 Token::Word(ref word) => { in parser()190 Token::Symbol(symbol) => { in parser()