Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
#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);
|
|
}
|