Implemented assert keyword
This commit is contained in:
parent
f0a1b97f2d
commit
e4f041be41
14 changed files with 81 additions and 1 deletions
10
src/build/ast/Assert.go
Normal file
10
src/build/ast/Assert.go
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue