mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2026-01-25 13:07:13 +00:00
v0.0.1
This commit is contained in:
parent
a2e305c27f
commit
d38d75c9d8
8 changed files with 90 additions and 56 deletions
|
|
@ -9,7 +9,9 @@ namespace info::builtin {
|
|||
|
||||
template<typename T>
|
||||
inline void Print(const T& value) { // only for strings ??
|
||||
std::cout << "\x1b[1;32mOutput:\x1b[0m " << value << '\n';
|
||||
std::cout << "\x1b[1;32mOutput:\x1b[0m ";
|
||||
std::cout << value;
|
||||
std::cout << '\n';
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@ public:
|
|||
contexts_.emplace_back(true); // no difference ??
|
||||
}
|
||||
|
||||
size_t ContextCount() {
|
||||
return contexts_.size();
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
utils::IdType AddValue(const T& value, utils::ValueType value_type) {
|
||||
return value_manager_.AddValue(value, value_type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue