Browse Source

Meta: Add to-dos

master
Riyyi 2 years ago
parent
commit
9271b9fe01
  1. 1
      src/ast.cpp
  2. 2
      src/environment.h
  3. 1
      src/printer.cpp
  4. 1
      src/reader.cpp

1
src/ast.cpp

@ -79,6 +79,7 @@ Function::Function(Lambda lambda)
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)) {
return Formatter<std::string>::format(builder, static_cast<blaze::String*>(value)->data());
}

2
src/environment.h

@ -42,6 +42,8 @@ class GlobalEnvironment final : public Environment {
public:
GlobalEnvironment()
{
// TODO: Add more native functions
// TODO: Move the functions to their own file
auto add = [](std::span<ASTNode*> nodes) -> ASTNode* {
int64_t result = 0;

1
src/printer.cpp

@ -92,6 +92,7 @@ void Printer::dumpImpl(ASTNode* node)
print("}}");
}
else if (is<String>(node)) {
// TODO: Implement string readably printing
printSpacing();
print("{}", static_cast<String*>(node)->data());
}

1
src/reader.cpp

@ -38,6 +38,7 @@ void Reader::read()
m_node = readImpl();
// TODO: Move these to the appropriate functions
// Error checking
if (m_invalid_syntax) {

Loading…
Cancel
Save