Single parsing logic

This commit is contained in:
Rafał Grodziński
2025-07-22 15:03:34 +09:00
parent 8a708d8936
commit 3041c4383b
6 changed files with 95 additions and 70 deletions

View File

@@ -18,15 +18,17 @@ private:
ParseeResultKind kind;
shared_ptr<Token> token;
shared_ptr<ValueType> valueType;
int tokensCount;
ParseeResult();
public:
static ParseeResult tokenResult(shared_ptr<Token> token);
static ParseeResult valueTypeResult(shared_ptr<ValueType> valueType);
static ParseeResult valueTypeResult(shared_ptr<ValueType> valueType, int tokensCount);
ParseeResultKind getKind();
shared_ptr<Token> getToken();
shared_ptr<ValueType> getValueType();
int getTokensCount();
};
#endif