35 lines
550 B
C++
35 lines
550 B
C++
#pragma once
|
|
|
|
#include "internal/trie/trie.h"
|
|
#include "pch.h"
|
|
|
|
namespace bed::internal::syntax::c {
|
|
const static std::vector<std::string> types = {
|
|
"int",
|
|
"char",
|
|
"long",
|
|
"void",
|
|
"auto"
|
|
};
|
|
|
|
const static std::vector<std::string> type_modifier = {
|
|
"signed",
|
|
"unsigned",
|
|
"long"
|
|
};
|
|
|
|
const static std::vector<std::string> math_operators = {
|
|
"+",
|
|
"-",
|
|
"*"
|
|
};
|
|
|
|
struct CTries {
|
|
trie::Trie<void> types_trie;
|
|
CTries() {
|
|
for (auto &keyword : types)
|
|
types_trie.insert(keyword);
|
|
}
|
|
};
|
|
} // namespace bed::internal::syntax::c
|