blob: 75af7c05e11d624d5895c4310a901678a3cd8f15 [file] [log] [blame]
#include "CParser.hpp"
TooManyArgumentsException::~TooManyArgumentsException() = default;
CParser::CParser(const CTree& tree)
: m_tree(tree)
{
}
Cmd CParser::parseInput(const std::string& line)
{
Cmd args;
auto it = line.begin();
//bool result = x3::phrase_parse(it, line.end(), command, space, args);
//std::cout << "success: " << result << std::endl;
if (it != line.end()) {
throw TooManyArgumentsException(std::string(it, line.end()));
}
return args;
}