Struct ress::Tokenizer [−][src]
pub struct Tokenizer<'a> { /* fields omitted */ }
Expand description
This structure will perform the low level
tokenization before the Scanner
provides
additional context
Implementations
Create a new tokenizer using
the provided string reference
to create a JsBuffer
Get the next raw token from the js text
get the next regex token from the js text, providing the lenth of the already consumed token (this will be either 1 or 2)
note: this should only be used after first getting /
or /=
from the next
method.