Make a Lisp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
404 B

2 years ago
/*
* Copyright (C) 2023 Riyyi
*
* SPDX-License-Identifier: MIT
*/
#pragma once
#include "ast.h"
namespace blaze {
// Serializer -> return to string
class Printer {
public:
Printer(ASTNode* node);
virtual ~Printer();
void dump();
private:
void dumpImpl(ASTNode* node);
bool m_firstNode { true };
bool m_previousNodeIsList { false };
ASTNode* m_node { nullptr };
};
} // namespace blaze