Guest User

Untitled

a guest
Jun 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. if(token_kind == KEYWORD)
  2. {
  3. object Statement_Parse_1 stmnt;
  4. assert((token_text.Is_Equal_To("IF") or token_text.Is_Equal_To("WHILE")), "Expected IF or WHILE");
  5. if (token_text.Is_Equal_To("IF"))
  6. {
  7. Parse_IF_Statement(str, m, token_text, token_kind, stmnt);
  8. self &= stmnt;
  9. }
  10. else if (token_text.Is_Equal_To("WHILE"))
  11. {
  12. Parse_WHILE_Statement(str, m, token_text, token_kind, stmnt);
  13. self &= stmnt;
  14. }
  15. }
  16. else
  17. {
  18. debug("tt cp: " << token_text);
  19. assert(token_kind == IDENTIFIER, "Expected IDENTIFIER");
  20. self.Compose_Call(token_text);
  21. }
  22. //Grab the next token
  23. m.Get_Next_Non_Separator_Token(str, token_text, token_kind);
Add Comment
Please, Sign In to add comment