NumberProdclass
A numeric production. These can be either spelled-out numbers (such as “fifty-seven”) or numbers entered in digit form (as in “57”).
class
NumberProd
:
BasicProd
Superclass Tree (in declaration order)
NumberProd
BasicProd
` object`
Subclass Tree
NumberProd
numberPhrase(digits)
numberPhrase(spelled)
poundNumberPhrase(main)
spelledHundred(aHundred)
spelledHundred(aHundredPlus)
spelledHundred(hundreds)
spelledHundred(hundredsPlus)
spelledHundred(small)
spelledMillion(aMillion)
spelledMillion(aMillionAndSmall)
spelledMillion(millions)
spelledMillion(millionsAndSmall)
spelledMillion(millionsPlus)
spelledNumber(main)
spelledSmallNumber(digit)
spelledSmallNumber(teen)
spelledSmallNumber(tens)
spelledSmallNumber(tensAndUnits)
spelledSmallNumber(zero)
spelledThousand(aThousand)
spelledThousand(aThousandAndSmall)
spelledThousand(thousands)
spelledThousand(thousandsAndSmall)
spelledThousand(thousandsPlus)
Global Objects
(none)
Summary of Properties
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
(none)
Methods
getStrVal ( )
Get the string version of the numeric value. This should return a string, but the string should be in digit form. If the original entry was in digit form, then the original entry should be returned; otherwise, a string should be constructed from the integer value. By default, we’ll do the latter.
getval ( )
get the numeric (integer) value
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3