24 lines
1.1 KiB
Go
24 lines
1.1 KiB
Go
package errors
|
|
|
|
var (
|
|
EmptySwitch = &Base{"Empty switch"}
|
|
ExpectedFunctionName = &Base{"Expected function name"}
|
|
ExpectedFunctionParameters = &Base{"Expected function parameters"}
|
|
ExpectedFunctionDefinition = &Base{"Expected function definition"}
|
|
ExpectedIfBeforeElse = &Base{"Expected an 'if' block before 'else'"}
|
|
InvalidNumber = &Base{"Invalid number"}
|
|
InvalidExpression = &Base{"Invalid expression"}
|
|
InvalidRune = &Base{"Invalid rune"}
|
|
InvalidStatement = &Base{"Invalid statement"}
|
|
MissingBlockStart = &Base{"Missing '{'"}
|
|
MissingBlockEnd = &Base{"Missing '}'"}
|
|
MissingExpression = &Base{"Missing expression"}
|
|
MissingGroupStart = &Base{"Missing '('"}
|
|
MissingGroupEnd = &Base{"Missing ')'"}
|
|
MissingMainFunction = &Base{"Missing main function"}
|
|
MissingOperand = &Base{"Missing operand"}
|
|
MissingType = &Base{"Missing type"}
|
|
NotImplemented = &Base{"Not implemented"}
|
|
UnknownType = &Base{"Unknown type"}
|
|
)
|