
7K followers • CS & IT
Nov 9, 2024 • 6m • 128 views
SDT uses syntax-directed definitions (SDDs) to attach semantic rules to grammar productions, where each rule is executed based on the syntax structure during parsing. ICG involves generating an intermediate representation (IR), often as a three-address code (TAC), abstract syntax trees (ASTs), or control flow graphs (CFGs).