Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteAlignment ¶
Types ¶
type Parser ¶ added in v0.2.5
type Parser struct {
// contains filtered or unexported fields
}
Parser represents a parser.
type Scanner ¶ added in v0.2.5
type Scanner struct {
// contains filtered or unexported fields
}
Scanner represents a lexical scanner.
func NewScanner ¶ added in v0.2.5
NewScanner returns a new instance of Scanner.
type Token ¶ added in v0.2.5
type Token int64
const ( ILLEGAL Token = iota EOF WS IDENT // Name of Node, or comment, or keyword NUMERIC // Any numerical value OPENBRACK // [ : For comment CLOSEBRACK // ] : For comment ENDOFCOMMAND // ; End of command ENDOFLINE // \r \n // Keywords NEXUS // #NEXUS : Start of nexus file EQUAL // '=' between keyword and value BEGIN // Begin DATA // Begin data -> Alignment TAXA // Begin taxa -> Definition of taxa TAXLABELS // Begin taxa : list of taxlabels TREES // Begin trees -> Definition of trees TREE // A specific tree in the BEGIN TREES section DIMENSIONS // Dimensions NTAX // Dimensions : Number of taxa NCHAR // Dimensions : Length of alignment FORMAT // Format DATATYPE // Format datatype=dna MISSING // Format missing=? missing char GAP // Format gap=- gap character MATRIX // Matrix END // End )
Click to show internal directories.
Click to hide internal directories.