# `Ichor.Syntax.Token`
[🔗](https://github.com/joetjen/ichor_runtime/blob/v0.6.0/lib/ichor/syntax/token.ex#L1)

One token in a lossless tree (`Ichor.Syntax`): every token of the input
is one, punctuation, literals and trivia included.

`name` is the token's name in the grammar -- `ANON_n` for a literal
the grammar wrote inline. `trivia` is true for the grammar's `@skip`
token: the comments and whitespace the ordinary parser steps over.
`offset` is in bytes; `line` and `column` are the tokenizer's own.

# `t`

```elixir
@type t() :: %Ichor.Syntax.Token{
  column: pos_integer(),
  line: pos_integer(),
  name: atom(),
  offset: non_neg_integer(),
  text: String.t(),
  trivia: boolean()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
