You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
408 B

1 year ago
  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. }