pub struct LRNonStreamingLexerDef<LexemeT, StorageT> { /* private fields */ }
Expand description

This struct represents, in essence, a .l file in memory. From it one can produce an LRNonStreamingLexer which actually lexes inputs.

Implementations

Return an LRNonStreamingLexer for the String s that will lex relative to this LRNonStreamingLexerDef.

Trait Implementations

Instantiate a lexer from a string (e.g. representing a .l file).

Get the Rule at index idx.

Get the Rule instance associated with a particular lexeme ID. Panics if no such rule exists. Read more

Get the Rule instance associated with a particular name.

Set the id attribute on rules to the corresponding value in map. This is typically used to synchronise a parser’s notion of lexeme IDs with the lexers. While doing this, it keeps track of which lexemes: Read more

Returns an iterator over all rules in this AST.

Returns an iterator over all start states in this AST.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.