Hierarchy

  • TreePatternLexer

Index

Constructors

constructor

Properties

Protected c

c: number

Current char

error

error: boolean = false

Protected n

n: number

How long is the pattern in char?

Protected p

p: number = -1

Index into input string

Protected pattern

pattern: string

The tree pattern to lex like "(A B C)"

sval

sval: string = ""

Set when token type is ID or ARG (name mimics Java's StreamTokenizer)

Static arg

arg: number = 4

Static begin

begin: number = 1

Static colon

colon: number = 6

Static dot

dot: number = 7

Static end

end: number = 2

Static id

id: number = 3

Static percent

percent: number = 5

Methods

consume

  • consume(): void
  • Returns void

nextToken

  • nextToken(): number
  • Returns number

Generated using TypeDoc