Search


Search something to see results

Token

Token: number

Value tokens are integer ids of records stored in an AstArena.

  • arena.getType(token) is the token type (EnumToken),
  • arena.getValue(token) is the string value (val),
  • arena.getNumericValue(token) is the numeric value (val) of numbers, dimensions and percentages,
  • arena.getUnit(token) is the unit,
  • arena.getColorType(token) is the color kind (kin),
  • arena.tokens(token) are the children (chi),
  • arena.fieldTokens(token, TokenField.L) ... are the structured fields (l, r, op, ...).