Debian Codegraph @

documentation/manual/grammar/uniondollar.yo

raw
1 itemization(
2 itt($$ = )
3
4 A value is assigned to the rule's nonterminal's semantic value. If the
5 rule's nonterminal was associated with one of the union's field types, then
6 the matching union field receives the value of the assignment expression's
7 right-hand side. If no association was defined then the variable representing
8 the nonterminal's semantic value is a plain union (i.e., tt(STYPE_))
9 variable.
10
11 itt($$(expr))
12
13 tt(Expr's) value is assigned to the rule's nonterminal's plain union
14 (i.e., tt(STYPE_)) type. Any association that may have been defined between
15 the nonterminal and a union field is ignored.
16
17 itt(_$$)
18
19 This refers to the rule's nonterminal's plain union (i.e., tt(STYPE_))
20 type. Any association that may have been defined between the nonterminal and a
21 union field is ignored.
22
23 itt($$)
24
25 This refers to the rule's nonterminal's semantic value. If it was
26 associated with one of the union's types, then tt($$) refers to the associated
27 union field. If no association was defined then tt($$) represents a plain
28 union (i.e., tt(STYPE_)) type of variable.
29
30 itt($$.)
31
32 If the rule's nonterminal's semantic value was associated with one of the
33 union's types, then tt($$.) is shorthand for the member selector operator,
34 applied to the associated union field type. If no association was defined then
35 tt($$.) is shorthand for the field selector operator, applied to the
36 nonterminal's semantic value's plain union (i.e., tt(STYPE_)) type.
37
38 itt($$->)
39
40 If the rule's nonterminal's semantic value was associated with one of the
41 union's types, then tt($$->) is shorthand for the pointer to member operator,
42 applied to the associated union field type. If no association was defined then
43 an error message is issued, as the pointer to member operator is not defined
44 for plain union types.
45
46
47 itt(_$1)
48
49 This refers to the current production rule's first component's plain
50 union (tt(STYPE_)) value.
51
52 itt($1)
53
54 This shorthand refers to the semantic value of the production rule's
55 first element. If it was associated with one of the union's types, then tt($1)
56 refers to the associated union field. If no association was defined then
57 tt($1) represents a plain union (i.e., tt(STYPE_)) type of variable.
58
59 itt($1.)
60
61 If the production rule's first component's semantic value was associated
62 with one of the union's types, then tt($1.) is shorthand for the member
63 selector operator, applied to the associated union field type. If no
64 association was defined then tt($1.) is shorthand for the field selector
65 operator, applied to the first component's semantic value's plain union (i.e.,
66 tt(STYPE_)) type.
67
68 itt($1->)
69
70 If the production rule's first component's semantic value was associated
71 with one of the union's types, then tt($1->) is shorthand for the pointer to
72 member operator, applied to the associated union field type. If no association
73 was defined then an error message is issued, as the pointer to member operator
74 is not defined for plain union types.
75
76
77 itt(_$-1)
78
79 This refers to the plain union (tt(STYPE_)) value of a component in a
80 production rule, listed immediately before the current rule's nonterminal ($-2
81 refers to a component used two elements before the current nonterminal, etc.).
82
83 itt($-1)
84
85 Same: this refers to the plain union (tt(STYPE_)) value of a component in
86 a production rule, listed immediately before the current rule's nonterminal
87 ($-2 refers to a component used two elements before the current nonterminal,
88 etc.).
89
90 itt($-1.)
91
92 This is shorthand for the field selector operator applied to to the plain
93 union (tt(STYPE_)) value of some production rule element, 1 element before
94 the current rule's nonterminal.
95
96 itt($-1->)
97
98 This shorthand refers to tho pointer to member operator applied to the
99 plain union (tt(STYPE_)) value of some production rule element, 1 element
100 before the current rule's nonterminal. Its use results in an error message, as
101 the pointer to member operator is not defined for plain union types.
102
103 itt($<field>-1)
104
105 This refers to the tt(field) union field of a component in a production
106 rule, listed immediately before the current rule's nonterminal. Note that the
107 validity of the specified field for that particular component cannot be
108 verified by bic().
109
110 itt($<field>-1.)
111
112 This refers to the member selector operator of the tt(field) union field
113 of a component in a production rule, listed immediately before the current
114 rule's nonterminal. Note that the validity of the specified field for that
115 particular component cannot be verified by bic().
116
117 itt($<field>-1->)
118 This refers to the pointer to member operator of the tt(field) union field
119 of a component in a production rule, listed immediately before the current
120 rule's nonterminal. Note that the validity of the specified field for that
121 particular component cannot be verified by bic().
122 )