Skip to content

Commit

Permalink
Update comments of lexer fields.
Browse files Browse the repository at this point in the history
  • Loading branch information
aleury committed Jan 22, 2024
1 parent 0ca9dc3 commit 55468aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lexer/lexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ var ErrInvalidCharacterLiteral error = errors.New("invalid character literal, mi

type Lexer struct {
input []rune
line int // current line number in input (for current char)
position int // current position in input (points to current char)
nextRuneIndex int // current reading position in input (after current char)
currentRune rune // current char under examination
line int // current line number in input (for current rune)
position int // current position in input (points to current rune)
nextRuneIndex int // current reading position in input (after current rune)
currentRune rune // current rune under examination
}

func New(reader io.Reader) (*Lexer, error) {
Expand Down

0 comments on commit 55468aa

Please sign in to comment.