Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MicrogrammarDefinition<T>

Object used to define a microgrammar

Type parameters

  • T

Hierarchy

  • MicrogrammarDefinition

Index

Properties

Properties

Optional options

Configure special characters in fromString. Defaults to: { ellipsis: "...", componentPrefix: "$", // so terms are designated like ${name} }

Optional phrase

phrase: string

Phrase defining how the terms should appear, including literals, if specified. A phrase is of form "method ${name}(): ${returnType}".

Optional terms

terms: TermsDefinition<T>

Definitions of the productions in this grammar

Generated using TypeDoc