您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

16 行
408 B

  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. }