void parse_StatementList() {
  /* <StatementList> -> <Statement> <StatementList_dash> */
  printf("Enter StatementList\n");
  parse_Statement();
  parse_StatementList_dash();
  printf("Exit  StatementList\n");
}
Exemple #2
0
void parse_StatementList_dash() {
  printf("Enter StatementList_dash\n");
  if (nextToken == T_SEMIC) {
    nextToken = getToken();
    parse_Statement();
    parse_StatementList_dash();
  }
}
void parse_StatementList_dash() {
  /* <StatementList_dash> -> T_SEMIC <Statement> <StatementList_dash> | ε */
  printf("Enter StatementList_dash\n");
  if (nextToken == T_SEMIC) {
    nextToken = getToken();
    parse_Statement();
    parse_StatementList_dash();
  }
  printf("Exit  StatementList_dash\n");
}
Exemple #4
0
void parse_StatementList() {
  printf("Enter StatementList\n");
  parse_Statement();
  parse_StatementList_dash();
}