Module token

Module token 

Source

Structs§

Span
Byte-level location in source text.
Token
A token with its kind and source location.

Enums§

TokenKind
Every possible token kind in the .sw language.

Functions§

keyword_lookup
Look up keyword/dtype/device from an identifier string. Returns None if the string is a plain identifier.