MessageSplitterTokenizer

class MessageSplitterTokenizer constructor(messageName: A_String)

MessageSplitterTokenizer breaks a message name into a sequence of token strings.

Author

Mark van Gulik

Todd L Smith

Parameters

messageName

An Avail string specifying the keywords and arguments of some message being defined.

Throws

    If the message name is malformed.

Constructors

Link copied to clipboard
fun MessageSplitterTokenizer(messageName: A_String)

Construct a new MessageSplitter, parsing the provided message into token strings and generating parsing for parsing occurrences of this message.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun canonicalMessageParts(): Array<A_String>

Answer the message parts that this tokenizer has produced, but mapped to canonical values to minimize the cost of storage and indirections.

Link copied to clipboard
fun messagePartPositions(): IntArray

Access the (read-only) array of one-based positions of tokens in the original string.

Properties

Link copied to clipboard
val messageName: A_String

The A_String to be parsed into message token strings.