Implemented assert keyword
This commit is contained in:
parent
f0a1b97f2d
commit
e4f041be41
14 changed files with 81 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue