完成表达式Ast定义。修改了format文件
This commit is contained in:
29
src/Ast/Expr/IdentiExpr.hpp
Normal file
29
src/Ast/Expr/IdentiExpr.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
/*!
|
||||
@file src/Ast/Expr/IdentiExpr.hpp
|
||||
@brief IdentiExpr定义
|
||||
@author PuqiAR (im@puqiar.top)
|
||||
@date 2026-02-14
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <Ast/Base.hpp>
|
||||
|
||||
namespace Fig
|
||||
{
|
||||
struct IdentiExpr final : Expr
|
||||
{
|
||||
String name;
|
||||
|
||||
IdentiExpr()
|
||||
{
|
||||
type = AstType::IdentiExpr;
|
||||
}
|
||||
|
||||
IdentiExpr(String _name, SourceLocation _loc)
|
||||
{
|
||||
type = AstType::IdentiExpr;
|
||||
name = std::move(_name);
|
||||
location = std::move(_loc);
|
||||
}
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user