CsvSymbolState

Implements a symbol state to tokenize delimiters in CSV streams.

Implements: GenericSymbolState

Description

The CsvSymbolState implements a symbol state to tokenize delimiters in CSV streams.

Constructors

NewCsvSymbolState

Constructs this object with specified parameters.

NewCsvSymbolState() *CsvSymbolState

Methods

NextToken

Gets the next token from the stream started from the character linked to this state.

(c *CsvSymbolState) NextToken(scanner IScanner, tokenizer ITokenizer) *Token

  • scanner: IScanner - text string to be tokenized.
  • tokenizer: ITokenizer - tokenizer class that controls the process.
  • returns: *Token - next token from the top of the stream.