5#ifndef BOTANIST_SERIALIZER_H
6#define BOTANIST_SERIALIZER_H
8#include <collection2/list.hpp>
9#include <collection2/tree.hpp>
19 collection2::List<SyntaxNode>& syntaxNodeList;
26 void serialize(
const collection2::TreeNode<SyntaxNode>* nodePtr);
29 explicit Serializer(collection2::List<SyntaxNode>& syntaxNodeList) : syntaxNodeList(syntaxNodeList){};
構文木をスタックマシンが実行可能な形に変換する
Definition: serializer.hpp:16
void dumpSeralizedNodeList() const
直列化されたノードリストをダンプ
void serializeTree(const collection2::TreeNode< SyntaxNode > *rootNode)
構文木をスタックマシンで処理できる形に並べ替え、ノードリストを更新する