Options
All
  • Public
  • Public/Protected
  • All
Menu

A lexer for sql templates

Hierarchy

  • Lexer

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Lexer(input: string, templatePath?: string): Lexer
  • Construct a lexer

    Parameters

    • input: string

      The template content

    • Default value templatePath: string = "<anonymous>"

      The path of the file the template was loaded from

    Returns Lexer

Properties

templatePath

templatePath: string

Methods

tokens

  • tokens(): IterableIterator<Token>
  • A generator that yields a token at time

    Returns IterableIterator<Token>

    A token iterable

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc