Initial version of Tokenizer and Token Generator template for coroutines (used in tokenizer) Utilities like string related functions, TrieMap, and error handling TODO: Add tests for Tokenizer TODO: Add tests for Generator
14 lines
199 B
C++
14 lines
199 B
C++
#pragma once
|
|
|
|
namespace arti::lang {
|
|
|
|
template <typename ...Ts>
|
|
struct OverloadSet {
|
|
using Ts::operator()...;
|
|
};
|
|
|
|
template <typename ...Ts>
|
|
OverloadSet(Ts...) -> OverloadSet<Ts...>;
|
|
|
|
}
|