Ordinal Prompt Literals

The ordinal prompt literal is always of type Prompt.

OrdinalPrompt:OrdinalPromptDeclarator [ Expression ]
OrdinalPromptDeclarator [ Expression , Expression ]
OrdinalPromptDeclarator:
#

Ordinal prompts correspond to the spoken ordinal position of the specified number in a parameter. Floating point and string literals are converted to an Integer representation before being converted to an ordinal spoken representation. The first expression must be of type String or a java.lang.Number type (that is, integral or floating-point). The second expression, if supplied, must be either a predefined gender constant (for example, MALE, FEMALE, or NEUTRAL) or an int type that results to 0 for neutral, 1 for male and 2 for female. This form also assumes that the language of the text correspond to the current language of the context unless the prompt is further qualified using the @ operator.

Example Ordinal Prompt Literals:

#[2] // second
#[3.3F] // third
#[2 + i, FEMALE]