Meta: Add to-dos

This commit is contained in:
Riyyi
2023-03-24 23:40:02 +01:00
parent 6c12b199e8
commit 9271b9fe01
4 changed files with 5 additions and 0 deletions
+1
View File
@@ -79,6 +79,7 @@ Function::Function(Lambda lambda)
void Formatter<blaze::ASTNode*>::format(Builder& builder, blaze::ASTNode* value) const void Formatter<blaze::ASTNode*>::format(Builder& builder, blaze::ASTNode* value) const
{ {
// TODO: Call into Printer::dumpImp(), instead of doing it manually
if (is<blaze::String>(value)) { if (is<blaze::String>(value)) {
return Formatter<std::string>::format(builder, static_cast<blaze::String*>(value)->data()); return Formatter<std::string>::format(builder, static_cast<blaze::String*>(value)->data());
} }
+2
View File
@@ -42,6 +42,8 @@ class GlobalEnvironment final : public Environment {
public: public:
GlobalEnvironment() GlobalEnvironment()
{ {
// TODO: Add more native functions
// TODO: Move the functions to their own file
auto add = [](std::span<ASTNode*> nodes) -> ASTNode* { auto add = [](std::span<ASTNode*> nodes) -> ASTNode* {
int64_t result = 0; int64_t result = 0;
+1
View File
@@ -92,6 +92,7 @@ void Printer::dumpImpl(ASTNode* node)
print("}}"); print("}}");
} }
else if (is<String>(node)) { else if (is<String>(node)) {
// TODO: Implement string readably printing
printSpacing(); printSpacing();
print("{}", static_cast<String*>(node)->data()); print("{}", static_cast<String*>(node)->data());
} }
+1
View File
@@ -38,6 +38,7 @@ void Reader::read()
m_node = readImpl(); m_node = readImpl();
// TODO: Move these to the appropriate functions
// Error checking // Error checking
if (m_invalid_syntax) { if (m_invalid_syntax) {