Semantic action (source code)

= Semantic action

An operation associated with a <context-free grammar> production, performed when that production is recognized. <Semantic actions> can construct an <abstract syntax tree> by combining the trees attached to its child <nonterminal symbols>.