Documentation ¶
Overview ¶
Package position implements a data structure for storing source code positions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Position ¶
type Position struct { Filename string // Source filename in which this token appears. Line int // Line in the source for this token. Startcol int // Starting and ending columns in the source for this token. Endcol int }
A Position is the location in the source program that a token appears. It can specify a single character in the pinput, in which case the start and end columns are the same, or a span of sequential characters on one line.
Click to show internal directories.
Click to hide internal directories.