SDT attaches "actions" to grammar rules. You’ll need to distinguish between:

: The compiler creates an abstract, machine-independent representation of the code, which serves as a bridge for further optimization.

Here is a phased breakdown of the syllabus, exactly how a "Gate Smashers" follower would approach it.