[feat]类初始化

This commit is contained in:
2025-12-22 17:38:52 +08:00
parent cff6bb77a3
commit 34a56beb90
13 changed files with 294 additions and 107 deletions

View File

@@ -126,12 +126,16 @@ namespace Fig
line = _line;
column = _column;
}
Token setPos(size_t _line, size_t _column)
const Token& setPos(size_t _line, size_t _column)
{
line = _line;
column = _column;
return *this;
}
size_t getLength()
{
return value.length();
}
const FString& getValue() const
{
return value;