RexQuestionclassparser.t[1157]

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  

answerFuncparser.t[1196]

the callback to invoke on answering

answerPatparser.t[1193]
the regular expression pattern to match

Methods  

construct (pat, func)parser.t[1167]

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)OVERRIDDENparser.t[1173]
no description available

Adv3Lite Library Reference Manual
Generated on 01/03/2024 from adv3Lite version 1.6.2