aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--parser/parser.go17
1 files changed, 8 insertions, 9 deletions
diff --git a/parser/parser.go b/parser/parser.go
index 3087381..300f2d7 100644
--- a/parser/parser.go
+++ b/parser/parser.go
@@ -10,15 +10,14 @@ import (
)
const (
- _ int = iota
- LOWEST
- EQUALS // ==
- LESSGREATER // > or <
- SUM // +
- PRODUCT // *
- PREFIX // -X or !X
- CALL // myFunction(X)
- INDEX // array[index]
+ LOWEST int = iota
+ EQUALS // ==
+ LESSGREATER // > or <
+ SUM // +
+ PRODUCT // *
+ PREFIX // -X or !X
+ CALL // myFunction(X)
+ INDEX // array[index]
)
var precedences = map[token.TokenType]int{