Improved error message for invalid instructions
This commit is contained in:
parent
aec22b0a7e
commit
e4cbb91f61
3 changed files with 8 additions and 2 deletions
|
@ -22,7 +22,8 @@ var errs = []struct {
|
|||
{"ExpectedIfBeforeElse2.q", errors.ExpectedIfBeforeElse},
|
||||
{"ExpectedStructName.q", errors.ExpectedStructName},
|
||||
{"ExpectedPackageName.q", errors.ExpectedPackageName},
|
||||
{"InvalidInstructionExpression.q", &errors.InvalidInstruction{Instruction: "+"}},
|
||||
{"InvalidInstructionCall.q", &errors.InvalidInstruction{Instruction: "sys.write"}},
|
||||
{"InvalidInstructionExpression.q", &errors.InvalidInstruction{Instruction: "2+3"}},
|
||||
{"InvalidInstructionIdentifier.q", &errors.InvalidInstruction{Instruction: "abc"}},
|
||||
{"InvalidInstructionNumber.q", &errors.InvalidInstruction{Instruction: "123"}},
|
||||
{"InvalidInstructionString.q", &errors.InvalidInstruction{Instruction: "\"Hello\""}},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue