move parser/utils to utils, Mux->Mu

Move the parser utils to utils/ and rename the Mux namespace into Mu.
This commit is contained in:
Dirk-Jan C. Binnema
2019-12-16 22:41:17 +02:00
parent b55e191421
commit 9f93526884
24 changed files with 165 additions and 157 deletions

View File

@ -18,13 +18,13 @@
*/
#include "tokenizer.hh"
#include "utils.hh"
#include "utils/mu-utils.hh"
#include <cctype>
#include <iostream>
#include <algorithm>
using namespace Mux;
using namespace Mu;
static bool
is_separator (char c)
@ -37,7 +37,7 @@ is_separator (char c)
}
static Mux::Token
static Mu::Token
op_or_value (size_t pos, const std::string& val)
{
auto s = val;
@ -62,7 +62,7 @@ unread_char (std::string& food, char kar, size_t& pos)
--pos;
}
static Mux::Token
static Mu::Token
eat_token (std::string& food, size_t& pos)
{
bool quoted{};
@ -115,8 +115,8 @@ eat_token (std::string& food, size_t& pos)
}
Mux::Tokens
Mux::tokenize (const std::string& s)
Mu::Tokens
Mu::tokenize (const std::string& s)
{
Tokens tokens{};