feat: first prototype of optimizers + alloca optimizer

This commit is contained in:
2026-01-01 22:08:43 +01:00
parent 8a2d98e69e
commit 0b9cb7e7d9
12 changed files with 274 additions and 40 deletions

View File

@@ -1,5 +1,4 @@
#pragma once
#include <iostream>
#include <cstring>
#include <cctype>
@@ -159,7 +158,7 @@ public:
m_token.string = s.data;
return true;
}
m_token = Token((TokenType)c, m_line, m_pos - m_last_newline, m_pos - m_last_newline + 1);
return true;
}
@@ -196,4 +195,4 @@ private:
size_t m_pos = 0;
size_t m_line = 1;
size_t m_last_newline = 0;
};
};