Single parsing logic
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user