Skip to content

Commit

Permalink
Delete Token.lastChar() method
Browse files Browse the repository at this point in the history
  • Loading branch information
tamboto2000 committed Oct 15, 2021
1 parent 1721689 commit 01752f8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,6 @@ func (t Token) TypeString() string {
return tokenTypeMap[t.t]
}

// lastChar fetch last pushed character in Token.chars
func (t Token) lastChar() rune {
if len(t.chars) > 0 {
return t.chars[len(t.chars)-1]
}

return 0
}

// Position indicating token's position
type Position struct {
ln int
Expand Down

0 comments on commit 01752f8

Please sign in to comment.