Implemented boolean literals

This commit is contained in:
Eduard Urbach 2025-02-26 14:33:41 +01:00
parent 1f0db51a95
commit bf5110edd4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
11 changed files with 69 additions and 13 deletions

View file

@ -0,0 +1,3 @@
main() {
if 42 {}
}

View file

@ -22,6 +22,7 @@ var errs = []struct {
{"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse},
{"ExpectedStructName.q", errors.ExpectedStructName},
{"ExpectedPackageName.q", errors.ExpectedPackageName},
{"InvalidCondition.q", errors.InvalidCondition},
{"InvalidInstructionCall.q", &errors.InvalidInstruction{Instruction: "sys.write"}},
{"InvalidInstructionExpression.q", &errors.InvalidInstruction{Instruction: "2+3"}},
{"InvalidInstructionIdentifier.q", &errors.InvalidInstruction{Instruction: "abc"}},