Implemented error messages

This commit is contained in:
Eduard Urbach 2024-06-13 12:13:32 +02:00
parent 2d990b0bee
commit 9458253f31
No known key found for this signature in database
GPG key ID: C874F672B1AF20C0
16 changed files with 362 additions and 60 deletions

11
src/errors/ScanErrors.go Normal file
View file

@ -0,0 +1,11 @@
package errors
var (
MissingBlockStart = &Base{"Missing '{'"}
MissingBlockEnd = &Base{"Missing '}'"}
MissingGroupStart = &Base{"Missing '('"}
MissingGroupEnd = &Base{"Missing ')'"}
ExpectedFunctionName = &Base{"Expected function name"}
ExpectedFunctionParameters = &Base{"Expected function parameters"}
ExpectedFunctionDefinition = &Base{"Expected function definition"}
)