RexQuestion class | parser.t[1193]

A RexQuestion is a simple subclass of Question for parsing answers with regular expressions.

`class RexQuestion : Question`

Superclass Tree (in declaration order)

`RexQuestion`
`Question`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`answerFunc answerPat`

Inherited from `Question` :
`answerTemplate priority`

Summary of Methods

`construct parseAnswer`

``

Properties

`answerFunc` | `parser.t[1232]`

the callback to invoke on answering

`answerPat` | `parser.t[1229]`

the regular expression pattern to match

Methods

`construct (pat, func)` | `parser.t[1203]`

Create - 'pat' is the regular expression pattern, as either a string or a RexPattern object. We'll parse an answer simply by matching it against the regular expression; if we match, we'll take it as an answer. 'func' is a callback function that we'll call to carry out the action of answering the question. We'll invoke this with one argument giving the literal text of the input.

`parseAnswer (toks, dict)`OVERRIDDEN | `parser.t[1209]`

no description available

Adv3Lite Library Reference Manual
Generated on 08/12/2025 from adv3Lite version 2.2.2