| 6 | : m_current(), m_end(), m_quotedType('\0') {} |
| 7 | |
| 8 | auto ShellParser::tokenize(String const& command) -> List<Token> { |
| 9 | List<Token> res; |
| 10 | |
| 11 | init(command); |
| 12 | |
| 13 | while (notDone()) { |
| 14 | res.append(Token{TokenType::Word, word()}); |
| 15 | } |
| 16 | |
| 17 | return res; |
| 18 | } |
| 19 | |
| 20 | StringList ShellParser::tokenizeToStringList(String const& command) { |
| 21 | StringList res; |