Skip to main content

PrologToken

Type Alias PrologToken 

Source
pub type PrologToken = Token<PrologTokenType>;
Expand description

Prolog token.

Aliased Type§

pub struct PrologToken {
    pub kind: PrologTokenType,
    pub span: Range<usize>,
}

Fields§

§kind: PrologTokenType

The kind/category of this kind (e.g., keyword, identifier, number)

§span: Range<usize>

The byte range in the source text that this kind occupies