Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

16 rader
408 B

1 år sedan
  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. }