Table of Contents

TTMSFNCMemoCustomLanguageRule Class

A single tokenizer rule consisting of a regular expression to match and an action that determines the token to emit and the state transition to perform.

API unit family: TMSFNCMemoCustomLanguage Inherits from: TCollectionItem

Syntax

TTMSFNCMemoCustomLanguageRule = class(TCollectionItem)

Properties

Name Description
Action Action taken when the regex matches, specifying the token to emit and any state transition.
Include Name of another tokenizer state to include (merge) into this state, allowing rule reuse across states.
Regex Regular expression pattern matched against the remaining input text; the first successful match triggers the associated action.

Methods

Name Description
AsJSObject Serialises this rule as a Monaco-compatible JavaScript object containing the regex pattern and action.

Used by