Implemented assert keyword

This commit is contained in:
Eduard Urbach 2024-07-25 16:47:25 +02:00
parent f0a1b97f2d
commit e4f041be41
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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