Massive reformating and cleanup
This commit is contained in:
@ -4,19 +4,20 @@
|
||||
|
||||
#include "ast/ast_component.hpp"
|
||||
|
||||
namespace fsh{
|
||||
namespace fsh {
|
||||
|
||||
class _Argument {
|
||||
public:
|
||||
virtual void svalue(const std::string& can, const Lexer::TokenType& type = Lexer::TokenType::FLAG) {}
|
||||
virtual void svalue(std::shared_ptr<CommandArgumentNode> can) {
|
||||
svalue(can->gvalue(), can->gtoken_type());
|
||||
}
|
||||
class _Argument {
|
||||
public:
|
||||
virtual void svalue(const std::string& can, const Lexer::TokenType& type = Lexer::TokenType::FLAG) {}
|
||||
virtual void svalue(std::shared_ptr<CommandArgumentNode> can) { svalue(can->gvalue(), can->gtoken_type()); }
|
||||
|
||||
template<typename T>
|
||||
static std::shared_ptr<_Argument> create() {return std::make_shared<T>();}
|
||||
protected:
|
||||
_Argument(){}
|
||||
};
|
||||
template <typename T>
|
||||
static std::shared_ptr<_Argument> create() {
|
||||
return std::make_shared<T>();
|
||||
}
|
||||
|
||||
protected:
|
||||
_Argument() {}
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user