“if” Statement grammar: <if ::= if <expression> then <statement> statement> Statement grammar: “if/Else” <if ::= if <expression> then <statement> | statement> if <expression> then <statement> else <statement> Statement grammar: “ While” <while ::= while <expression> do <statement> statement> Statement grammar: “For” <for ::= for <variable > ::= <expression> to statement> identifier <expression> do < statement>
“if” Statement grammar: <if statement> ::= if <expression> then <statement> “if/Else” Statement grammar: <if statement> ::= if <expression> then <statement> | if <expression> then <statement> else <statement> “ While” Statement grammar: <while statement> ::= while <expression> do <statement> “For” Statement grammar: <for statement> ::= for <variable identifier > ::= <expression> to <expression> do < statement>