Current section

Files

Jump to
timex lib parse datetime parser_state.ex
Raw

lib/parse/datetime/parser_state.ex

defmodule Timex.Parse.DateTime.ParserState do
@derive Access
defstruct col: 0, # The current column number
start_index: 0, # The last index of a starting token
padding: 0, # The amount of padding for the current token
pad_type: :zero, # The character to use for padding, :zero or :space
token: "", # The current state of the parsed token
tokens: [] # A keyword list of tokens
end