A rule is either a regular expression and an action shorthands: [reg,act] == { regex: reg, action: act} and : [reg,act,nxt] == { regex: reg, action: act{ next: nxt }}

Hierarchy

  • IMonarchLanguageRule

Index

Properties

Properties

Optional action

action to take on match

Optional include

include: string

or an include rule. include all rules from the included state

Optional regex

regex: string | RegExp

match tokens