pub fn parse_tokens(t: &Table) -> Result<Tokens>Expand description
{ colors = { name = colour | { light =, dark = } | { from =, ops = } }, lengths = { name = px } } as a kui_core::Tokens (ADR 0027). Names
are sorted, since a Lua table’s iteration order is not one a
declaration can promise and the index is only what env.tokens lists
them in. A colour with from is a derived token (ADR 0028), its ops
a list of { verb, … } tuples; the values are declared first and the
derived ones after, each once every source it names is in — position
cannot carry that order here, so the name does. One whose source never
arrives goes in last as written, for the core to drop with
unknown-token; a cycle drops the same way, each naming the other.