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

10
src/build/ast/Assert.go Normal file
View file

@ -0,0 +1,10 @@
package ast
import (
"git.akyoto.dev/cli/q/src/build/expression"
)
// Assert represents a condition that must be true, otherwise the program stops.
type Assert struct {
Condition *expression.Expression
}