pass-test-tokenize-all #1

Merged
sashakoshka merged 20 commits from pass-test-tokenize-all into main 2022-08-11 03:07:36 -06:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit bef5b0328e - Show all commits

View File

@ -78,7 +78,7 @@ func (token Token) Value () (value any) {
// Equals returns whether this token is equal to another token
func (token Token) Equals (testToken Token) (match bool) {
return token == testToken
return token.value == testToken.value
}
// Location returns the location of the token in its file.

View File

@ -15,8 +15,8 @@ type Permission struct {
func ModeFrom (char rune) (mode Mode) {
switch (char) {
case 'r': mode = ModeNone
case 'n': mode = ModeRead
case 'n': mode = ModeNone
case 'r': mode = ModeRead
case 'w': mode = ModeWrite
}