Debian Codegraph @

documentation/manual/grammar/polymorphicshorthand.yo

raw
1 The tt(%polymorphic) directive is used to specify a series of semantic value
2 types. (Non)terminals can be associated with exactly one of these types, or
3 with the generic tt(STYPE_) semantic value type. When the latter type is used
4 either another tt(STYPE_) value can be assigned to it, or a value of one of
5 the defined polymorphic value types can be assigned to it. At any time an
6 tt(STYPE_) can only hold one single value type. Polymorphic semantic types
7 are type safe: types cannot be confused. Furthermore, as tt(STYPE_) objects
8 are responsible for their own memory management, memory leaks cannot occur,
9 assuming that the different semantic value types do not leak.
10
11 In the next overview the available dollar-notations that are available with
12 polymorphic semantic values are described. In this overview $1 is used as a
13 generic reference to semantic values of production rule components. Instead of
14 $1 other available numbered dollar references can also be used.
15
16 includefile(polydollar.yo)