尝试UTF32String

This commit is contained in:
2026-02-05 22:20:21 +08:00
parent d897f41c57
commit 9c68b2e77d
69 changed files with 3078 additions and 2605 deletions

View File

@@ -20,17 +20,15 @@ namespace Fig::Ast
class FunctionDefSt final : public StatementAst // for definition
{
public:
FString name;
String name;
FunctionParameters paras;
bool isPublic;
Expression retType;
Expression retType;
BlockStatement body;
FunctionDefSt()
{
type = AstType::FunctionDefSt;
}
FunctionDefSt(FString _name, FunctionParameters _paras, bool _isPublic, Expression _retType, BlockStatement _body)
FunctionDefSt() { type = AstType::FunctionDefSt; }
FunctionDefSt(
String _name, FunctionParameters _paras, bool _isPublic, Expression _retType, BlockStatement _body)
{
type = AstType::FunctionDefSt;
@@ -42,4 +40,4 @@ namespace Fig::Ast
}
};
using FunctionDef = std::shared_ptr<FunctionDefSt>;
}; // namespace Fig
}; // namespace Fig::Ast