Na462 yes it is bottom up and mostly semantic actions are placed are rightmost end like this
$S \rightarrow$ a A {print a}
that's why a is printed while we move up
but in this specific question the semantic action is in the middle of productions and non-terminals are right end so while going down we will do all semantic actions except the last one
A $\rightarrow \epsilon$
because semantic action is on rightmost end