diff --git a/src/Ast/Ast.hpp b/src/Ast/Ast.hpp new file mode 100644 index 0000000..1bdffcd --- /dev/null +++ b/src/Ast/Ast.hpp @@ -0,0 +1,8 @@ +/*! + @file src/Ast/Ast.hpp + @brief Ast总链接 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ + +#pragma once diff --git a/src/Deps/Deps.hpp b/src/Deps/Deps.hpp index 25bd1fc..57033d7 100644 --- a/src/Deps/Deps.hpp +++ b/src/Deps/Deps.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Deps/Deps.hpp + @brief 依赖库集合 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #pragma once #include diff --git a/src/Deps/HashMap/HashMap.hpp b/src/Deps/HashMap/HashMap.hpp index bc74f88..a1a3cc5 100644 --- a/src/Deps/HashMap/HashMap.hpp +++ b/src/Deps/HashMap/HashMap.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Deps/HashMap/HashMap.hpp + @brief 依赖库HashMap定义 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #pragma once #include diff --git a/src/Deps/String/CharUtils.hpp b/src/Deps/String/CharUtils.hpp index acf82bd..7280812 100644 --- a/src/Deps/String/CharUtils.hpp +++ b/src/Deps/String/CharUtils.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Deps/String/CharUtils.hpp + @brief char32_t type实现 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #pragma once namespace Fig::Deps diff --git a/src/Deps/String/String.hpp b/src/Deps/String/String.hpp index c5cf6c1..4ba073d 100644 --- a/src/Deps/String/String.hpp +++ b/src/Deps/String/String.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Deps/String/String.hpp + @brief UTF32/Pure ASCII + SSO优化的字符串实现 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #pragma once #include diff --git a/src/Deps/String/StringTest.cpp b/src/Deps/String/StringTest.cpp index a633859..aff81b6 100644 --- a/src/Deps/String/StringTest.cpp +++ b/src/Deps/String/StringTest.cpp @@ -1,3 +1,10 @@ +/*! + @file src/Deps/String/StringTest.cpp + @brief String类测试代码 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #include #include #include "String.hpp" diff --git a/src/Error/Error.cpp b/src/Error/Error.cpp index 551f592..8228504 100644 --- a/src/Error/Error.cpp +++ b/src/Error/Error.cpp @@ -1,3 +1,10 @@ +/*! + @file src/Error/Error.cpp + @brief 错误报告实现 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ + #include #include diff --git a/src/Error/Error.hpp b/src/Error/Error.hpp index 75748ca..189ab3e 100644 --- a/src/Error/Error.hpp +++ b/src/Error/Error.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Error/Error.hpp + @brief Error定义 + @author PuqiAR (im@puqiar.top) + @date 2026-02-13 +*/ + #pragma once #include diff --git a/src/Lexer/Lexer.cpp b/src/Lexer/Lexer.cpp index 290a7c9..b472a5f 100644 --- a/src/Lexer/Lexer.cpp +++ b/src/Lexer/Lexer.cpp @@ -1,3 +1,9 @@ +/*! + @file src/Lexer/Lexer.cpp + @brief 词法分析器(materialized lexeme)实现 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ #include namespace Fig diff --git a/src/SourceManager/SourceManager.hpp b/src/SourceManager/SourceManager.hpp index fed79a3..a49db27 100644 --- a/src/SourceManager/SourceManager.hpp +++ b/src/SourceManager/SourceManager.hpp @@ -1,3 +1,10 @@ +/*! + @file src/SourceManager/SourceManager.hpp + @brief 源代码管理 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ + #pragma once #include diff --git a/src/Token/Token.cpp b/src/Token/Token.cpp index 7524959..960f05e 100644 --- a/src/Token/Token.cpp +++ b/src/Token/Token.cpp @@ -1,3 +1,9 @@ +/*! + @file src/Token/Token.cpp + @brief Token实现 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ #include namespace Fig @@ -87,4 +93,4 @@ namespace Fig {String("false"), TokenType::LiteralFalse}, {String("null"), TokenType::LiteralNull}, }; -}; \ No newline at end of file +}; // namespace Fig \ No newline at end of file diff --git a/src/Token/Token.hpp b/src/Token/Token.hpp index a62f25c..dc982b1 100644 --- a/src/Token/Token.hpp +++ b/src/Token/Token.hpp @@ -1,3 +1,10 @@ +/*! + @file src/Token/Token.hpp + @brief Token定义 + @author PuqiAR (im@puqiar.top) + @date 2026-02-14 +*/ + #pragma once #include