title: Semantic rules in compiler
body: <p>I am confused about the semantic rules which is used during syntax directed definition (SDD) and syntax directed translation (SDT).</p>
  
  <p>How do we get the semantic rules? Is it like the grammar that needs to be specified by the developer for the language.</p>