DirectionProdclass
Base class for “direction” productions. Each direction (the compass directions, the vertical directions, the shipboard directions, and so on) must have an associated grammar rule, which must produce one of these. This should be subclassed with grammar rules like this:
grammar directionName: ‘north’ | ‘n’ : DirectionProd
dir = northDirection
;
class
DirectionProd
:
BasicProd
Superclass Tree (in declaration order)
DirectionProd
BasicProd
` object`
Subclass Tree
DirectionProd
directionName(aft)
directionName(down)
directionName(east)
directionName(fore)
directionName(in)
directionName(north)
directionName(northeast)
directionName(northwest)
directionName(out)
directionName(port)
directionName(south)
directionName(southeast)
directionName(southwest)
directionName(starboard)
directionName(up)
directionName(west)
Global Objects
(none)
Summary of Properties
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
dir
Each direction-specific grammar rule subclass must set this property to the associated direction object (northDirection, etc).
Methods
(none)
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3