#pragma once #include "chunk.h" #include #include #include #include class Segment: public std::vector> { public: void append(const std::vector>& list); size_t getAddressOfLabel(const std::string& label); size_t getAddressOfIndex(size_t index); std::vector getCode(); void insertAddresses(); void optimize(); };