Documentation ¶
Overview ¶
Provides a Scanner to scan chrodpro format See http://www.vromans.org/johan/projects/Chordii/chordpro/ See ExampleSong to see how to parse a chordpro file
Index ¶
Constants ¶
View Source
const ( Eof = -(iota + 1) NewLineToken TextToken DirectiveToken ChordToken )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directive ¶
A ChordPro directive
func ParseDirective ¶
Parse a Directive, split the directive in name and Data
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
A Scanner produces tokens from text
func NewScanner ¶
Return a new Scanner from a Reader
func (*Scanner) GetCursorPosition ¶
Get the Current position of the cursor
Click to show internal directories.
Click to hide internal directories.