cxx-frontend
    Preparing search index...

    Class Lexer

    Index

    Constructors

    • Creates a new lexer.

      Parameters

      • source: string

        The source code to be tokenized.

      Returns Lexer

    Accessors

    • get keepComments(): boolean

      Returns whether the lexer should keep comments.

      Returns boolean

    • set keepComments(value: boolean): void

      Sets whether the lexer should keep comments.

      Parameters

      • value: boolean

      Returns void

    • get preprocessing(): boolean

      Returns whether the lexer is configured to preprocess the input.

      Returns boolean

    • set preprocessing(value: boolean): void

      Sets whether the lexer should preprocess the input.

      Parameters

      • value: boolean

      Returns void

    • get tokenAtStartOfLine(): boolean

      Returns whether the current token is at the start of a line.

      Returns boolean

    • get tokenHasLeadingSpace(): boolean

      Returns whether the current token has a leading space.

      Returns boolean

    • get tokenLength(): number

      Returns the length of the current token.

      Returns number

    • get tokenOffset(): number

      Returns the offset of the current token.

      Returns number

    • get tokenText(): string

      Returns the text of the current token.

      Returns string

    Methods

    • Disposes the lexer.

      Returns void