Debian Codegraph @

documentation/manual/grammar/stypedollar.yo

raw
1 itemization(
2 itt($$ = )
3
4 A value is assigned to the rule's nonterminal's semantic value. The
5 right-hand side (rhs) of the assignment expression must be an expression of a
6 type that can be assigned to the tt(STYPE_) type.
7
8 itt($$(expr))
9
10 Same as the previous dollar-notation: tt(expr's) value is assigned to
11 the rule's nonterminal's semantic value.
12
13 itt(_$$)
14
15 This refers to the semantic value of the rule's nonterminal.
16
17 itt($$)
18
19 Same as the previous item: this refers to the semantic value of the rule's
20 nonterminal.
21
22 itt($$.)
23
24 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
25 for the member selector operator, applied to the rule's nonterminal's semantic
26 value.
27
28 itt($$->)
29
30 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
31 for the pointer to member operator, applied to the rule's nonterminal's
32 semantic value.
33
34 itt(_$1)
35
36 This refers to the current production rule's first component's semantic
37 value.
38
39 itt($1)
40
41 Same as the previous dollar-notation: this refers to the
42 current production rule's first component's semantic value.
43
44 itt($1.)
45
46 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
47 for the member selector operator, applied to the current production rule's
48 first component's semantic value.
49
50 itt($1->)
51
52 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
53 for the pointer to member operator, applied to the current production rule's
54 first component's semantic value.
55
56 itt(_$-1)
57
58 This refers to the semantic value of a component in a production rule,
59 listed immediately before the current rule's nonterminal ($-2 refers to a
60 component used two elements before the current nonterminal, etc.).
61
62 itt($-1)
63
64 Same as the previous item: this refers to the semantic value of a
65 component in a production rule, listed immediately before the current rule's
66 nonterminal.
67
68 itt($-1.)
69
70 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
71 for the member selector operator, applied to the semantic value
72 of some production rule element, 1 element before the current rule's
73 nonterminal.
74
75 itt($-1->)
76
77 If tt(STYPE_) is a class-type then this dollar-notation is shorthand
78 for the pointer to member operator, applied to the semantic value
79 of some production rule element, 1 element before the current rule's
80 nonterminal.
81 )