Trait enso_flexer::Definition[][src]

pub trait Definition {
    fn define() -> Self;
fn groups(&self) -> &Registry;
fn set_up(&mut self);
fn tear_down(&mut self); }
Expand description

Allows for the definition of flexer-based lexers.

Required methods

fn define() -> Self[src]

Expand description

Define the custom lexer.

fn groups(&self) -> &Registry[src]

Expand description

Obtain the registry of groups for the lexer.

fn set_up(&mut self)[src]

Expand description

Run before any lexing takes place.

fn tear_down(&mut self)[src]

Expand description

Run after lexing has completed.

Loading content...

Implementors

Loading content...