Syntax

What will be covered ?


Compilers vs Interpreters

User's view of a Classical Sequence for Running a Program

Phases of Compilation

Phases Of Compilation -- Click to Enlarge Diagram
 

Variations


Specification of a Programming Language
Lexical Analysis and Tokens Syntactic Analysis and BNF
Abstract Syntax Tree 
    => if <logic_expr1) then if <logic-expr2> then <stmt1> else <stmt2> end end

VS
<stmt>  => if <logic_expr1) then <stmt> else <stmt2> end
 => if <logic_expr1) then if <logic-expr2> else <stmt1> end <stmt2> end

Operators

Infix notation

a + b * c
Operator Precedence
Associativity of Operators: 
A := A + B + C
Evaluation policies
are
Operators of Common Languages

Parsing Techniques and Tools:

expr := term { + term}

like a while loop
What does the code mean?     Formal method