Skip to main content

Module lexer

Module lexer 

Available on crate feature parse only.

Structsยง

Lexer ๐Ÿ”’
Splits IDL text into tokens, skipping whitespace other than line breaks.
Token ๐Ÿ”’
A token with the byte offset where it starts.

Enumsยง

Kind ๐Ÿ”’
A token of IDL text.

Functionsยง

is_line_break ๐Ÿ”’
Returns whether c ends a line.
is_whitespace ๐Ÿ”’
Returns whether c is whitespace other than a line break.
word_len ๐Ÿ”’
Returns the length of the word at the start of rest.