Shader: Rework Parser internals

This commit is contained in:
Jérôme Leclercq
2021-03-11 17:51:38 +01:00
parent 48b93a9dea
commit 3f74ee4d66
3 changed files with 73 additions and 54 deletions

View File

@@ -36,7 +36,7 @@ namespace Nz::ShaderLang
std::vector<Token> Tokenize(const std::string_view& str)
{
// Can't use std::from_chars for double thanks to libc++ and libstdc++ developers being lazy
// Can't use std::from_chars for double thanks to libc++ and libstdc++ developers for being lazy
ForceCLocale forceCLocale;
std::unordered_map<std::string, TokenType> reservedKeywords = {