Skip to main content

BoolLiteral

export interface BoolLiteral {
  isEqual(other: Token): boolean
  kind: "bool"
  site: Site
  toString(preserveWhitespace?: boolean): string
  value: boolean
}
BoolLiteral is a Token variant that represents the keywords true or false.

Instantiate a BoolLiteral token with makeBoolLiteral.

Properties

isEqual

isEqual(other: Token): boolean

kind

kind: "bool"

site

site: Site

toString

toString(preserveWhitespace?: boolean): string

value

value: boolean