This commit is contained in:
@@ -16,7 +16,7 @@ namespace MalachScript {
|
||||
constexpr inline static bool Contains(FuncAttr set, FuncAttr flag) {
|
||||
return (static_cast<uint8_t>(set) & static_cast<uint8_t>(flag)) != 0;
|
||||
}
|
||||
constexpr inline static FuncAttr Set(FuncAttr set, FuncAttr flag){
|
||||
constexpr inline static FuncAttr Set(FuncAttr set, FuncAttr flag) {
|
||||
return static_cast<FuncAttr>(static_cast<uint8_t>(set) | static_cast<uint8_t>(flag));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace MalachScript{
|
||||
namespace MalachScript {
|
||||
enum class TypeMod : uint8_t {
|
||||
None = 0,
|
||||
RefIn = 1,
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define MALACHSCRIPT_PARSEDEXPRESSION_HPP
|
||||
|
||||
namespace MalachScript::Parser {
|
||||
class ParsedExpression{};
|
||||
class ParsedExpression {};
|
||||
}
|
||||
|
||||
#endif // MALACHSCRIPT_PARSEDEXPRESSION_HPP
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <cstdint>
|
||||
#include "NumericalLexers.hpp"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
uint8_t LexDecimalValue(char8_t c) {
|
||||
switch (c) {
|
||||
|
||||
@@ -273,7 +273,7 @@ namespace MalachScript::Parser {
|
||||
if (ParseIdentifier(identifier, current)) {
|
||||
PROGRESS_TOKEN(current);
|
||||
scope.push_back(identifier);
|
||||
if (current->GetKind() != LexTokenKind::ColonColonSymbol){
|
||||
if (current->GetKind() != LexTokenKind::ColonColonSymbol) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
@@ -494,10 +494,9 @@ namespace MalachScript::Parser {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (current->GetKind() != LexTokenKind::CloseCurlyParenthesisSymbol){
|
||||
if (current->GetKind() != LexTokenKind::CloseCurlyParenthesisSymbol) {
|
||||
LogError(Diagnostics::DiagnosticType::UnexpectedToken, current->GetSpan());
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
PROGRESS_TOKEN(current);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user