Documentation
¶
Index ¶
Constants ¶
View Source
const ( SWIFT_ALPHA = EOF + iota + 1 // 'A' - 'Z' SWIFT_CHARACTER // 'A' - 'Z', '0' - '9' SWIFT_DECIMAL // '0' - '9', ',' SWIFT_NUMERIC // '0' - '9' SWIFT_ALPHANUMERIC // all characters from charset SWIFT_DATASET_START SWIFT_TAG_SEPARATOR SWIFT_TAG SWIFT_MESSAGE_SEPARATOR )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
A Iterator iterates over a slice of Tokens
type Lexer ¶ added in v0.1.4
type Lexer struct {
// contains filtered or unexported fields
}
A Lexer is a HBCI data element lexer based on an input string
func (*Lexer) HasNext ¶ added in v0.1.4
HasNext returns true if there are tokens left, false if EOF has reached
func (*Lexer) SetEntryPoint ¶ added in v0.1.4
func (l *Lexer) SetEntryPoint(entryPoint LexerStateFn)
SetEntryPoint sets the initial state of the lexer. The lexer will reset itself to use the new entryPoint properly
type LexerStateFn ¶ added in v0.1.4
type LexerStateFn func(*Lexer) LexerStateFn
LexerStateFn represents a state function for the lexer.
type SwiftLexer ¶
type SwiftLexer struct {
*Lexer
}
A SwiftLexer parses the given input and emits SWIFT tokens
func NewSwiftLexer ¶
func NewSwiftLexer(name string, input []byte) *SwiftLexer
NewSwiftLexer returns a SwiftLexer ready for parsing the given input string
type Type ¶
type Type int
Type identifies the type of lex tokens.
const ( ILLEGAL Type = iota // An illegal/unknown character ERROR // error occurred; DATA_ELEMENT_SEPARATOR // Datenelement (DE)-Trennzeichen GROUP_DATA_ELEMENT_SEPARATOR // Gruppendatenelement (GD)-Trennzeichen SEGMENT_END_MARKER // Segmentende-Zeichen BINARY_DATA_LENGTH // Binärdaten Länge BINARY_DATA // Binärdaten BINARY_DATA_MARKER // Binärdatenkennzeichen ALPHA_NUMERIC // an TEXT // txt DTAUS_CHARSET // dta NUMERIC // num: 0-9 without leading 0 DIGIT // dig: 0-9 with optional leading 0 FLOAT // float YES_NO // jn DATE // dat VIRTUAL_DATE // vdat TIME // tim IDENTIFICATION // id COUNTRY_CODE // ctr: ISO 3166-1 numeric CURRENCY // cur: ISO 4217 VALUE // wrt EOF )
Click to show internal directories.
Click to hide internal directories.