refactor(lexer): replace const with static (#28695)

Refactor. Use `static` instead of `const` to store large tables.
This commit is contained in:
overlookmotel committed 2026-11-02 04:08:42 +00:00
1 parent 54752f1d16
commit 7bd0eeaee4
1 file changed
+2 -2
+2 -2
View File
@@ -154,8 +154,8 @@ struct OpTablesData {
op3: OpTableData<OP3_HASH_TABLE_SIZE>,
}
const OP2_TABLE: OpTable<OP2_HASH_TABLE_SIZE> = OpTable::new(&OP_TABLES_DATA.op2, 2, OP2_MUL);
const OP3_TABLE: OpTable<OP3_HASH_TABLE_SIZE> = OpTable::new(&OP_TABLES_DATA.op3, 3, OP3_MUL);
static OP2_TABLE: OpTable<OP2_HASH_TABLE_SIZE> = OpTable::new(&OP_TABLES_DATA.op2, 2, OP2_MUL);
static OP3_TABLE: OpTable<OP3_HASH_TABLE_SIZE> = OpTable::new(&OP_TABLES_DATA.op3, 3, OP3_MUL);
/// Operator hash table.
struct OpTable<const TABLE_SIZE: usize> {