Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

16 строки
408 B

1 год назад
  1. #pragma once
  2. #include <vector>
  3. #include <map>
  4. #include <string>
  5. namespace molasses {
  6. // We will always want symbols to be convertible to int for dictionary lookups
  7. using symbol = int;
  8. struct lexed_output {
  9. std::map<int, std::string> dictionary;
  10. std::vector<symbol> symbols;
  11. };
  12. lexed_output lex(const std::string &);
  13. lexed_output concatenate(const lexed_output& lhs, const lexed_output& rhs);
  14. }