Massive reformating and cleanup
This commit is contained in:
@ -6,28 +6,25 @@
|
||||
#include "ast/ast.hpp"
|
||||
#include "util/input.hpp"
|
||||
|
||||
namespace fsh
|
||||
{
|
||||
|
||||
class fsh {
|
||||
public:
|
||||
std::unordered_map<std::string, std::string> environment;
|
||||
namespace fsh {
|
||||
|
||||
static fsh& instance() {
|
||||
static fsh f;
|
||||
return f;
|
||||
}
|
||||
class fsh {
|
||||
public:
|
||||
std::unordered_map<std::string, std::string> environment;
|
||||
|
||||
void run_line(std::string &line, std::istream &in = util::cin, std::ostream &out = std::cout);
|
||||
void run();
|
||||
static fsh& instance() {
|
||||
static fsh f;
|
||||
return f;
|
||||
}
|
||||
|
||||
private:
|
||||
fsh(){
|
||||
environment["PROMPT"] = "$";
|
||||
environment["QUIT"] = "";
|
||||
}
|
||||
|
||||
};
|
||||
void run_line(std::string& line, std::istream& in = util::cin, std::ostream& out = std::cout);
|
||||
void run();
|
||||
|
||||
private:
|
||||
fsh() {
|
||||
environment["PROMPT"] = "$";
|
||||
environment["QUIT"] = "";
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user