Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. string tokensm::token_value()
  2. {
  3.     value = "";
  4.     if (ch == '@') {
  5.         while (ch != '\n' && ch != -1) {
  6.             value += ch;
  7.             token = "address";
  8.             nextch();
  9.         }
  10.     } else if (ch == -1) {
  11.         value = "?";
  12.         token = "?";
  13.     }
  14.     nextch();
  15.     return value ;
  16. }
  17.  
  18. // return the next token - "?" on error or end of input
  19. string tokensm::next_token()
  20. {
  21.     return token ;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement