Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a state in a LangStateMachine

Hierarchy

  • LangState

Index

Constructors

Properties

Methods

Constructors

constructor

  • new LangState(name: string, comment: boolean, stringLiteral: boolean): LangState
  • Create a new state

    Parameters

    • name: string

      name of the state. Merely informative.

    • comment: boolean

      is this a comment state? A language can have multiple kinds of comments, such as /* and // comments

    • stringLiteral: boolean

      are we in a string literal? A language can have multiple kinds of string literals, like Scala " and """ strings

    Returns LangState

Properties

comment

comment: boolean

is this a comment state? A language can have multiple kinds of comments, such as /* and // comments

name

name: string

name of the state. Merely informative.

stringLiteral

stringLiteral: boolean

are we in a string literal? A language can have multiple kinds of string literals, like Scala " and """ strings

Methods

normal

  • normal(): boolean

Generated using TypeDoc