Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Scanner

Hierarchy

  • Scanner

Index

Constructors

constructor

  • new Scanner(source: string, file?: string): Scanner

Properties

Private current

current: number = 0

Private file

file: string

Private line

line: number = 1

Private source

source: string

Private start

start: number = 0

Private tokens

tokens: Token[] = []

Methods

Private addToken

  • addToken(type: TokenType, literal?: any): void

Private advance

  • advance(): string

Private identifier

  • identifier(): void

Private isAlpha

  • isAlpha(c: string): boolean

Private isAlphaNumeric

  • isAlphaNumeric(c: string): boolean

Private isAtEnd

  • isAtEnd(): boolean

Private isDigit

  • isDigit(c: string): boolean

Private match

  • match(char: string): boolean

Private number

  • number(): void

Private peek

  • peek(): string

Private peekLast

  • peekLast(): string

Private peekNext

  • peekNext(): string

Private scanToken

  • scanToken(): void

scanTokens

  • scanTokens(): Token[]

Private string

  • string(): void

Generated using TypeDoc