Dynamic match object interface. This is a mix-in class that should be used as a superclass for any class used as the match object when creating new alternatives dynamically with GrammarProd.addAlt().

This class provides an implementation of grammarInfo() that works like the version the compiler generates for static match objects. In this case, we use the grammarAltProps information that addAlt() stores in the match object.

class DynamicProd :   object

Superclass Tree   (in declaration order)


Subclass Tree  


Global Objects  


Summary of Properties  

grammarAltProps  grammarTag 

Summary of Methods  




grammarAltProps - the list of "->" properties used in all of the alternatives associated with this match object. addAlts() stores this list automatically - there's no need to create it manually.

grammarTag - the name for the collection of alternatives associated with the match object. This name is primarily for debugging purposes; it appears as the first element of the grammarInfo() result list.


grammarInfo ( )gramprod.t[162]

Generate match information. This returns the same information that grammarInfo() returns for match objects that the compiler generates for static 'grammar' statements.

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3