Turns OpenUI Lang source into tokens (language.md, section 1.3).
Lexing never fails: a character that matches no rule is skipped. Tokens:
{:ident, name}: an identifier, lowercase or uppercase (the parser decides whether it is a component);{:state, "$name"}and{:at, "Name"}for$nameand@Name;{:string, value}, or{:string, value, :unterminated}when the text ends inside it;{:number, number},{:literal, true | false | nil};{:op, text}for every operator and punctuation mark;:newline.
A number with an exponent marker and no exponent digits (1e) is not a
usable number in the spec; here it takes the value of its mantissa.
Summary
Functions
Returns the tokens of source.