3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/gui/ExprTokenType.h"
7#include "mc/client/gui/LiteralType.h"
8#include "mc/client/gui/OperatorType.h"
9#include "mc/client/gui/UiExpression.h"
10#include "mc/deps/json/Value.h"
15 enum class StringOption :
int {
16 EvaluateAsExpression = 0,
23 ::ll::TypedStorage<1, 1, ::OperatorType> mOperatorType;
24 ::ll::TypedStorage<1, 1, ::LiteralType> mLiteralType;
25 ::ll::TypedStorage<1, 1, ::ExprTokenType> mTokenType;
26 ::ll::TypedStorage<8, 40, ::std::variant<::Json::Value, ::UiExpression>> mValue;
31 ExprToken& operator=(ExprToken
const&);
32 ExprToken(ExprToken
const&);
38 MCAPI
void _parseOperator(::std::string_view str);
40 MCAPI
void _parseToken(::std::string_view str);
42 MCAPI ::std::string_view asString()
const;
44 MCAPI ::ExprToken& operator=(::ExprToken&&);
46 MCAPI
void replaceWith(::std::string_view fromStringView);
52 MCAPI static ::ExprToken createBoolToken(
bool fromBool);
54 MCAPI static ::ExprToken createExpressionToken(::UiExpression expression);
56 MCAPI static ::ExprToken createFloatToken(
float fromFloat);
58 MCAPI static ::ExprToken createIntToken(
int fromInt);
60 MCAPI static ::ExprToken createStringToken(::std::string_view fromStr, ::ExprToken::StringOption evalString);