Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SourceLine ¶
type SourceLine struct {
Str string
}
func SliceHigherIndents ¶
func SliceHigherIndents(lines []SourceLine, indent int) []SourceLine
return slice of the elements at the head of lines that have an indent level higher than indent
func (SourceLine) IndentLevel ¶
func (s SourceLine) IndentLevel() int
func (SourceLine) IsComment ¶
func (s SourceLine) IsComment() bool
func (*SourceLine) NextToken ¶
func (s *SourceLine) NextToken() (string, error)
note: this modifies the line and invalidates IndentLevel() and IsComment()
func (SourceLine) NextTokenType ¶
func (s SourceLine) NextTokenType() string
Click to show internal directories.
Click to hide internal directories.