class Dataframe::CSVLexer
- Dataframe::CSVLexer
- Reference
- Object
Defined in:
parser/csv_lexer.crConstant Summary
-
DEFAULT_QUOTE_CHAR =
'"'
-
DEFAULT_SEPARATOR =
','
Constructors
- .new(string : String, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
- .new(io : IO, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
Instance Method Summary
-
#next_token : CSVLexer::Token
Returns the next
Token
in this CSV. -
#token : Token
Returns the current
Token
.
Constructor Detail
def self.new(string : String, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
#
def self.new(io : IO, separator : Char = DEFAULT_SEPARATOR, quote_char : Char = DEFAULT_QUOTE_CHAR)
#