| 1 | // Copyright (c) 2021 Lars Pontoppidan. All rights reserved. |
| 2 | // Use of this source code is governed by an MIT license |
| 3 | // that can be found in the LICENSE file. |
| 4 | module token |
| 5 | |
| 6 | // Position represents a position in a TOML document. |
| 7 | pub struct Pos { |
| 8 | pub: |
| 9 | len int // length of the literal in the source |
| 10 | line_nr int // the line number in the source where the token occurred |
| 11 | pos int // the position of the token in scanner text |
| 12 | col int // the column in the source where the token occurred |
| 13 | } |
| 14 | |