TokenType

An enumeration that lists the basic kinds of tokens that can be encountered.

Author

Mark van Gulik

Entries

Link copied to clipboard

A special type of token that is appended to the actual tokens of the file to simplify end-of-file processing.

Link copied to clipboard

A sequence of characters suitable for an Avail identifier, which roughly corresponds to characters in a Java identifier.

Link copied to clipboard

A literal token, detected at lexical scanning time. Only applicable for a LiteralTokenDescriptor.

Link copied to clipboard

A single operator character, which is anything that isn't whitespace, a keyword character, or an Avail reserved character.

Link copied to clipboard

A token that is the entirety of an Avail method/class comment. This is text contained between slash-asterisk and asterisk-slash. Only applicable for CommentTokenDescriptor.

Link copied to clipboard

A token representing one or more whitespace characters separating other tokens. These tokens are skipped by the normal parsing machinery, although some day we'll provide a notation within method names to capture whitespace tokens as arguments.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The associated special atom.

Link copied to clipboard
open override val fieldName: String

Answer the name of this enumeration value.

Link copied to clipboard
open override val fieldOrdinal: Int

Answer an integer that identifies this enumeration value uniquely within this enumeration subclass (i.e., any enumeration class implementing this interface). These values are allocated sequentially to the enumeration values, starting at zero.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.