Guest User

Untitled

a guest
Jul 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. const bool r
  2. = qi::parse(beg, end,
  3. no_case[(
  4. (string("LOCK") [ph::ref(command) = ct_lock] >> *space >> construct<std::string>(+(char_ - eoi))[ph::ref(lock_name) = _1])
  5. | (string("TRY_LOCK") [ph::ref(command) = ct_try_lock] >> *space >> construct<std::string>(+(char_ - eoi))[ph::ref(lock_name) = _1])
  6. | (string("UNLOCK") [ph::ref(command) = ct_unlock] >> eoi)
  7. | (string("VERSION") [ph::ref(command) = ct_version] >> eoi)
  8. | (string("INFO") [ph::ref(command) = ct_info] >> eoi)
  9. | (string("QUIT") [ph::ref(command) = ct_quit] >> eoi)
  10. )]);
Add Comment
Please, Sign In to add comment