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(ExprToken
const&);
37 MCAPI
void _parseToken(::std::string_view str);
39 MCAPI
bool asBool()
const;
41 MCAPI
float asFloat()
const;
43 MCAPI
int asInt()
const;
45 MCAPI ::std::string_view asString()
const;
47 MCAPI ::ExprToken& operator=(::ExprToken
const&);
49 MCAPI ::ExprToken& operator=(::ExprToken&&);
57 MCAPI static ::ExprToken createBoolToken(
bool fromBool);
59 MCAPI static ::ExprToken createFloatToken(
float fromFloat);
61 MCAPI static ::ExprToken createIntToken(
int fromInt);
63 MCAPI static ::ExprToken createStringToken(::std::string_view fromStr, ::ExprToken::StringOption evalString);