Documentation
    Preparing search index...

    Interface TwingLexer

    interface TwingLexer {
        arrowOperator: [string];
        commentPair: [string, string];
        interpolationPair: [string, string];
        level: 2 | 3;
        operators: string[];
        tagPair: [string, string];
        testOperators: [string, string];
        variablePair: [string, string];
        tokenize(source: string): Token[];
        tokenizeSource(source: TwingSource): TwingTokenStream;
    }

    Hierarchy

    • Lexer
      • TwingLexer
    Index

    Properties

    arrowOperator: [string]

    The arrow operator.

    commentPair: [string, string]

    The comment delimiters.

    interpolationPair: [string, string]

    The interpolation delimiters.

    level: 2 | 3
    operators: string[]

    The supported operators.

    tagPair: [string, string]

    The tag delimiters.

    testOperators: [string, string]

    The test operators.

    variablePair: [string, string]

    The variable delimiters.

    Methods

    • Tokenize a source into a list of tokens.

      Parameters

      • source: string

      Returns Token[]