13 lines
395 B
Go
13 lines
395 B
Go
package instruction
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// ErrInvalidSyntax is raised when encountering an invalid token
|
|
var ErrInvalidSyntax = errors.New("invalid instruction format")
|
|
|
|
// ErrUnknownInstruction is raised when encountering an unknown instruction
|
|
// it can mean that you're not using the right version or that you've misspelled it
|
|
var ErrUnknownInstruction = errors.New("unknown instruction")
|