From 8256280b348b4b53fff35c9101ced0a8dfb2c58e Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 31 Oct 2020 18:10:58 +0100 Subject: CPP::translate() (WIP), documentation, bugfixing --- cpp.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'cpp.h') diff --git a/cpp.h b/cpp.h index 3d82751..6db7146 100644 --- a/cpp.h +++ b/cpp.h @@ -33,13 +33,15 @@ public: std::vector getCode(); std::vector getData(); - typedef std::unordered_map> map_type; - private: - std::string m_code; // input / start - std::vector m_charTokens; // result of phase 3 + typedef std::unordered_map> map_type; + + std::string m_code; // input from compile() + std::vector m_tokens; // result of phase 7.a std::vector m_nodes; // result of phase 7.b void traverse(index_t node_id, map_type& map, fs::path parent_path = "/"); + + CPP::map_type map_translation_unit; }; -- cgit v1.2.3