poundNumberPhrase(main)grammar
A number phrase preceded by a pound sign. We distinguish this kind of number phrase from plain numbers, since this kind has a somewhat more limited set of valid contexts.
grammar
poundNumberPhrase
(main)
:
NumberProd
Superclass Tree (in declaration order)
poundNumberPhrase(main)
NumberProd
BasicProd
` object`
Summary of Properties
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
(none)
Methods
getStrVal ( )
OVERRIDDEN
get the string value - we have a number token following the ‘#’, so simply return the part after the ‘#’
getval ( )
OVERRIDDEN
get the numeric value - a tokPoundInt token has a pound sign followed by digits, so the numeric value is the value of the substring following the ‘#’ sign
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3