Expand description
CRUDUI expression tokens (expressions.md §1, JS types.ts TokenType parity).
TokenType is the terminal tag; Token is {type,value,literal}. WHITESPACE
never reaches the token array (the lexer drops it); EOF is always the final
token. The serialized shape (to_value) byte-matches the shared fixture’s
tokens entries — no position field, since the 4-language token contract
excludes positions (the Rust AST holds none either).
Intentionally absent (GRAMMAR §1·§10): arithmetic + - * / %, function calls,
method calls, regex, assignment =, bitwise, root path /. Do not add them.
Structs§
- Token
- A single lexical token.
valueis the raw source text;literalis the parsed payload (orNone). No position field — the 4-language token contract excludes positions, matching the shared fixture’s token shape.