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.
 

17 regels
408 B

#pragma once
#include <vector>
#include <map>
#include <string>
namespace molasses {
// We will always want symbols to be convertible to int for dictionary lookups
using symbol = int;
struct lexed_output {
std::map<int, std::string> dictionary;
std::vector<symbol> symbols;
};
lexed_output lex(const std::string &);
lexed_output concatenate(const lexed_output& lhs, const lexed_output& rhs);
}