Module Wax_lang.LexerSource

Lexer for Wax.

Sourceval is_valid_identifier : string -> bool

Checks if a string is a valid Wax identifier.

token ctx returns the tokenizer closure and a start_override ref (always None here — the Wax lexer combines no tokens). The shape matches the shared lexer interface consumed by Wax_wasm.Parsing; see Wax_wasm.Lexer.token.