This commit is contained in:
parent
5fb64e12e1
commit
bfb47d9b5f
@ -55,15 +55,7 @@ namespace MalachScript {
|
|||||||
ArithmeticRightShift,
|
ArithmeticRightShift,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class PreOperator : uint8_t {
|
enum class PreOperator : uint8_t { Negation, Identity, Inversion, Increment, Decrement, BitwiseComplement, Handle };
|
||||||
Negation,
|
|
||||||
Identity,
|
|
||||||
Inversion,
|
|
||||||
Increment,
|
|
||||||
Decrement,
|
|
||||||
BitwiseComplement,
|
|
||||||
Handle
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // MALACHSCRIPT_OPERATORS_HPP
|
#endif // MALACHSCRIPT_OPERATORS_HPP
|
||||||
|
@ -319,6 +319,7 @@ namespace MalachScript::Parser {
|
|||||||
: ParsedStatementImpl(span), _literalValue(literalValue) {}
|
: ParsedStatementImpl(span), _literalValue(literalValue) {}
|
||||||
|
|
||||||
[[nodiscard]] inline const T& GetLiteralValue() const noexcept { return _literalValue; }
|
[[nodiscard]] inline const T& GetLiteralValue() const noexcept { return _literalValue; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T _literalValue;
|
T _literalValue;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user