summaryrefslogtreecommitdiffhomepage
path: root/mintages/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'mintages/errors.go')
-rw-r--r--mintages/errors.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/mintages/errors.go b/mintages/errors.go
deleted file mode 100644
index 7319404..0000000
--- a/mintages/errors.go
+++ /dev/null
@@ -1,22 +0,0 @@
-package mintages
-
-import "fmt"
-
-type location struct {
- file string
- linenr int
-}
-
-func (loc location) String() string {
- return fmt.Sprintf("%s: %d", loc.file, loc.linenr)
-}
-
-type SyntaxError struct {
- location
- expected, got string
-}
-
-func (e SyntaxError) Error() string {
- return fmt.Sprintf("%s: syntax error: expected %s but got %s",
- e.location, e.expected, e.got)
-}