Skip to main content

LexOutput

Type Alias LexOutput 

Source
pub type LexOutput<L>
where L: Language,
= OakDiagnostics<Arc<[Token<<L as Language>::TokenType>]>>;
Expand description

Output type for lexical analysis operations, including diagnostics.

Aliased Type§

pub struct LexOutput<L>
where L: Language,
{ pub result: Result<Arc<[Token<<L as Language>::TokenType>]>, OakError>, pub diagnostics: Vec<OakError>, }

Fields§

§result: Result<Arc<[Token<<L as Language>::TokenType>]>, OakError>

The primary result of the parsing operation. May contain either a successful value or a fatal error.

§diagnostics: Vec<OakError>

A collection of non-fatal errors or warnings encountered during the operation.