Added padding type to pattern language

This commit is contained in:
WerWolv
2020-11-20 21:59:27 +01:00
parent 48296775ae
commit 57dcf6cc93
6 changed files with 38 additions and 11 deletions

View File

@@ -169,6 +169,8 @@ namespace hex::lang {
tokens.push_back({ .type = Token::Type::Type, .typeToken = { .type = Token::TypeToken::Type::Float } });
else if (identifier == "double")
tokens.push_back({ .type = Token::Type::Type, .typeToken = { .type = Token::TypeToken::Type::Double } });
else if (identifier == "padding")
tokens.push_back({ .type = Token::Type::Type, .typeToken = { .type = Token::TypeToken::Type::Padding } });
// If it's not a keyword and a builtin type, it has to be an identifier