source.go
1package ast
2
3type Source struct {
4 Name string
5 Input string
6}
7
8type Position struct {
9 Start int // The starting position, in runes, of this token in the input.
10 End int // The end position, in runes, of this token in the input.
11 Line int // The line number at the start of this item.
12 Column int // The line number at the start of this item.
13 Src *Source // The source document this token belongs to
14}