Meta: Add to-dos
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user