Interface LexerResult

interface LexerResult {
    errors: ILexingError[];
    hidden: IToken[];
    report?: LexingReport;
    tokens: IToken[];
}

Properties

errors: ILexingError[]
hidden: IToken[]

Contains hidden tokens, usually comments.

report?: LexingReport
tokens: IToken[]

A list of all tokens that were lexed from the input.

Note that Langium requires the optional properties startLine, startColumn, endOffset, endLine and endColumn to be set on each token.