Documentation
¶
Overview ¶
Package pos implements the position of a lexical dotted item
Index ¶
- type Pos
- func (pos *Pos) Clone() *Pos
- func (pos *Pos) Equal(other *Pos) bool
- func (pos *Pos) Inc() *Pos
- func (pos *Pos) Len() int
- func (pos *Pos) Peek(height int) int
- func (pos *Pos) Pop(n int) *Pos
- func (pos *Pos) Push(p int) *Pos
- func (pos *Pos) String() string
- func (pos *Pos) Tail() *Pos
- func (pos *Pos) Top() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pos ¶
type Pos struct {
// contains filtered or unexported fields
}
Pos contains the position of a lexical Item
func (*Pos) Peek ¶
Peek returns the value of the item at height above the bottom of the stack. Pos remains unmodified
func (*Pos) Pop ¶
Pop removes the top n elements from the stack. Pop returns a self pointer for command chaining.
Click to show internal directories.
Click to hide internal directories.