working on opcodes

This commit is contained in:
2025-12-25 02:34:41 +01:00
parent 885919952c
commit 49f0219900
10 changed files with 167 additions and 507 deletions

View File

@@ -31,3 +31,11 @@ pub fn skip(self: *Self) bool {
self.index += 1;
return true;
}
pub fn skipN(self: *Self, count: usize) bool {
if (self.index >= self.buffer.len) {
return false;
}
self.index += count;
return true;
}