Ludwig Lehnert f8c17803c3 revamping...
2024-12-22 00:04:01 +01:00

25 lines
512 B
C++

#pragma once
#include "AST/Base.h"
#include <string>
namespace plsm {
namespace ast {
class Identifier : public Expr {
const std::string name;
public:
Identifier(LOC_ARG, const std::string &name)
: Expr(sourceRange), name(name) {}
virtual boost::json::value toJson() override;
static Identifier *fromJson(boost::json::value json);
virtual std::any accept(ASTVisitor *visitor, std::any param) override {
return visitor->visit(*this, param);
}
};
} // namespace ast
} // namespace plsm