Implemented boolean literals

This commit is contained in:
2025-02-26 14:33:41 +01:00
parent 91f34bc88f
commit 5f46a6f14e
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"}},