Node* Syntactic::Compound_Stmt() { Node* node = nullptr; if(lexic->type == Token::IF) { node = If_Stmt(); } else { node = While_Stmt(); } return node; }
void Statment() { if(!strcmp(string[TokenCounter],"if")) If_Stmt(); else if(!strcmp(string[TokenCounter],"repeat")) Repeat_Stmt(); else if(!strcmp(string[TokenCounter],"identifier")) Assign_Stmt(); else if(!strcmp(string[TokenCounter],"read")) Read_Stmt(); else if(!strcmp(string[TokenCounter],"write")) Write_Stmt(); }