terminal_helper.h 478 B

123456789101112131415161718192021222324
  1. //
  2. // terminal_helper.hpp
  3. // simple_dice
  4. //
  5. // Created by Sam Jaffe on 12/18/18.
  6. // Copyright © 2018 Sam Jaffe. All rights reserved.
  7. //
  8. #pragma once
  9. #include <string>
  10. namespace dice {
  11. class unexpected_token;
  12. }
  13. namespace terminal {
  14. /**
  15. * @param str {@see make_dice(std::string const &)}
  16. */
  17. void process_dice_string(std::string const & str);
  18. void print_error_message(std::string const & str,
  19. dice::unexpected_token const & ut);
  20. }