aboutsummaryrefslogtreecommitdiff
path: root/spec/lexer.go
diff options
context:
space:
mode:
authorRyo Nihei <nihei.dev@gmail.com>2021-07-18 22:15:35 +0900
committerRyo Nihei <nihei.dev@gmail.com>2021-07-18 22:15:35 +0900
commite4a5958fc8d9e131ab083215a51a1b60acf91410 (patch)
tree6ca224a42915135e8f5427d62fc52455b1a1bc59 /spec/lexer.go
parentAdd token positions to an AST (diff)
downloadcotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.gz
cotia-e4a5958fc8d9e131ab083215a51a1b60acf91410.tar.xz
Detect multiple semantic errors in a single parse
Diffstat (limited to 'spec/lexer.go')
-rw-r--r--spec/lexer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lexer.go b/spec/lexer.go
index 83b1a93..1f8805a 100644
--- a/spec/lexer.go
+++ b/spec/lexer.go
@@ -35,12 +35,12 @@ const (
)
type Position struct {
- row int
+ Row int
}
func newPosition(row int) Position {
return Position{
- row: row,
+ Row: row,
}
}