aboutsummaryrefslogtreecommitdiff
path: root/lexem.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexem.go')
-rw-r--r--lexem.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/lexem.go b/lexem.go
index bd24ea9..c594ee9 100644
--- a/lexem.go
+++ b/lexem.go
@@ -9,12 +9,12 @@ type Lexem struct {
}
// LexType represents type of current lexem.
-type LexType string
+type LexType int
// Some std lexem types
const (
- // LError represents lexing error.
- LError LexType = "ERROR"
// LEOF represents end of input.
- LEOF LexType = "EOF"
+ LexEOF LexType = -1
+ // LError represents lexing error.
+ LexError LexType = -2
)