lexer: ErrUnacceptableRune
Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package lexer
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
@@ -9,6 +10,11 @@ var (
|
||||
_ error = (*Error)(nil)
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrUnacceptableRune indicates the read rune
|
||||
ErrUnacceptableRune = errors.New("rune not acceptable in context")
|
||||
)
|
||||
|
||||
// Error represents a generic parsing error
|
||||
type Error struct {
|
||||
Filename string
|
||||
|
||||
Reference in New Issue
Block a user