Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string tokensm::token_value()
- {
- value = "";
- if (ch == '@') {
- while (ch != '\n' && ch != -1) {
- value += ch;
- token = "address";
- nextch();
- }
- } else if (ch == -1) {
- value = "?";
- token = "?";
- }
- nextch();
- return value ;
- }
- // return the next token - "?" on error or end of input
- string tokensm::next_token()
- {
- return token ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement