For” Statement grammar: <for ::= for <variable > ::= <expression> to statement> identifier <expression> do < statement> Statement grammar: “Case” <Case> := Case id Of <case_element> End | empty ‘;’ <case_element> := <case_label_list> <statement>’;’ <statement> ‘’’ ‘:’ <case_element> | < case_Label_list> := < Constant> <case_label_list> | <constant> ‘{‘ ‘,’ <case_label_list> |’{‘ <constant> := | | | id | num ‘’’ ’+’ ’-‘ Array” structure grammar: “ <OnDimArray> := array [ num .. num ] of <standard_type> <standard_type> := | integer real If logic statement grammar: <IFLogic> := <ANDLOGIC> < expression_list> <IFLogic> | empty Or <ANDLOGIC> := < expression_list> And <expression_list> <ANDLOGIC> | <expression_list> := < expression> | < expression > ‘,’ <expression> :=…….
For” Statement grammar: <for statement> ::= for <variable identifier > ::= <expression> to <expression> do < statement> “Case” Statement grammar: <Case> := Case id Of <case_element> End ‘;’ | empty <case_element> := ‘’’ <case_label_list> ‘:’ <statement>’;’ <statement> <case_element> | < case_Label_list> := < Constant> ‘{‘ <case_label_list> | ‘,’ <constant> <case_label_list> |’{‘ <constant> := ‘’’ | ’+’ | ’-‘ | id | num “ Array” structure grammar: <OnDimArray> := array [ num .. num ] of <standard_type> <standard_type> := integer | real If logic statement grammar: <IFLogic> := <ANDLOGIC> Or < expression_list> <IFLogic> | empty <ANDLOGIC> := < expression_list> And <expression_list> <ANDLOGIC> | <expression_list> := < expression> | ‘,’ < expression > <expression> :=…….
DCSPMCompilerV8a.docx