Start organizing code

This commit is contained in:
2025-05-17 12:24:07 -04:00
parent 6f0315e00c
commit 733dc576b7
6 changed files with 524 additions and 479 deletions

18
src/tables.h Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
constexpr inline struct Tables {
constexpr Tables() {
whitespace[' '] = true;
whitespace['\n'] = true;
whitespace['\r'] = true;
whitespace['\t'] = true;
for (int i = 0; i < 10; ++i) {
number['0' + i] = true;
}
number['.'] = true;
number['+'] = true;
number['-'] = true;
}
alignas(16) bool whitespace[256]{};
alignas(16) bool number[256]{};
} tables;