SLIDE 1
1
CSC 1800 Organization of Programming Languages
Semantics
2
CSC 1800 Organization of Programming Languages Semantics 1 - - PDF document
CSC 1800 Organization of Programming Languages Semantics 1 Revisiting Syntax Syntax: look, form/structure notation: context free grammar, BNF Semantics: what programs do, their behavior and meaning no standard notation 2
2
3
(not Non-Terminals)
4
5
6
7
8
–
–
–
–
9
10
– Programmers need to know what statements mean – Compiler writers must know exactly what language constructs do – Correctness proofs would be possible – Compiler generators would be possible – Designers could detect ambiguities and inconsistencies
11
–
–
–
12
–
–
–
–
–
–
–
13
–
–
14
15
16
–
–
–
–
17
18
–
–
–
19
20
21
22