优化注释

This commit is contained in:
2026-07-04 19:32:01 +08:00
parent 680197aafe
commit 0f5304001c

View File

@@ -5,18 +5,17 @@ int main()
{ {
using namespace Fig; using namespace Fig;
String fileName = "test.fig"; String fileName = "[memory]";
String filePath = String filePath =
"T:/Files/Maker/Code/MyCodingLanguage/The Fig Project/Fig/" + fileName; "System" + fileName;
SourceManager srcManager(filePath); SourceManager srcManager(filePath);
String source = srcManager.Read(); String source = R"(
if (!srcManager.read) var a = 10;
{ var a: Int;
std::cerr << "Couldn't read file: " << filePath << '\n'; var a := 200 * 30 + 2;
return 1; )";
}
Lexer lexer(source, fileName); Lexer lexer(source, fileName);