Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:
With respect to the above grammar, which one of the following choices is correct?
- AThe actions can be used to correctly type-check any syntactically correct program.
- BThe actions can be used to type-check syntactically correct integer variable declarations and integer expressions.
- CThe actions can be used to type-check syntactically correct boolean variable declarations and boolean expressions.
- DThe actions will lead to an infinite loop.

