Implemented assert keyword

This commit is contained in:
2024-07-25 16:47:25 +02:00
parent f0bc5039ee
commit f4dd9004be
14 changed files with 81 additions and 1 deletions

View File

@ -14,11 +14,13 @@ type Function struct {
Body []token.Token
Functions map[string]*Function
Err error
deferred []func()
count counter
}
// counter stores how often a certain statement appeared so we can generate a unique label from it.
type counter struct {
assert int
branch int
data int
loop int