<for ::= for <variable > ::= <expression> to <expression> do < statement> identifier statement> <expression> expression> | <simple expression> <relational operator> <simple expression> <simple ::= <sign> <term> { <adding expression> <term> } operator> <term> ::= <factor> { <multiplying <factor> } operator> <factor> ::= <variable> | ( <expression> ) <relational = | <> | < | <= | >= | > ::= operator> <adding ::= + operator> | - <multiplying ::= * | / operator> <variable> ::= <entire variable> <entire ::= <variable variable> identifier> <variable <identifier> ::= identifier> <identifier> ::= <letter> { <letter or digit> }
<for statement> ::= for <variable identifier > ::= <expression> to <expression> do < statement> <expression> expression> | <simple expression> <relational operator> <simple expression> <simple expression> ::= <sign> <term> { <adding operator> <term> } <term> ::= <factor> { <multiplying operator> <factor> } <factor> ::= <variable> | ( <expression> ) <relational operator> ::= = | <> | < | <= | >= | > <adding operator> ::= + | - <multiplying operator> ::= * | / <variable> ::= <entire variable> <entire variable> ::= <variable identifier> <variable identifier> ::= <identifier> <identifier> ::= <letter> { <letter or digit> }
DCSPMCompilerV8a.docx