Enum member names and values must be unique

This commit is contained in:
2022-10-14 04:00:05 -04:00
parent dd29f69213
commit 2669a04857
5 changed files with 90 additions and 6 deletions

View File

@@ -47,3 +47,7 @@ func (location Location) Describe () (description string) {
" column ", location.column + 1,
" width ", location.width)
}
// TODO: add extend method that extends that takes in another location, and
// returns a new location that spans the two. then, use it in the parser to
// properly locate an entire tree node.