adding real runtime
All checks were successful
Test / build (push) Successful in 19s
Build / build (push) Successful in 1m30s

This commit is contained in:
2026-01-11 04:22:57 +01:00
parent 5b9f5c93fb
commit 10da5ee648
6 changed files with 582 additions and 185 deletions

View File

@@ -54,3 +54,17 @@ pub fn skipN(self: *Self, count: usize) bool {
self.index += count;
return true;
}
pub fn skipToEnd(self: *Self) void {
self.index = self.buffer.len;
}
pub inline fn emitSourceLocation(self: *const Self) usize {
return self.index;
}
pub inline fn jumpToSourceLocation(self: *Self, source_location: usize) bool {
if (source_location > self.buffer.len) return false;
self.index = source_location;
return true;
}