DirectionProdclassparser.t[545]

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  

dir 

Summary of Methods  

Inherited from BasicProd :
filterPossRank  getOrigText  getOrigTokenList 

Properties  

dirparser.t[551]

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 9/15/2006 from TADS version 3.0.12