完成表达式Ast定义。修改了format文件

This commit is contained in:
2026-02-14 18:00:46 +08:00
parent 51e831cc6a
commit 35e479fd05
8 changed files with 307 additions and 14 deletions

View 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);
}
};
};