diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-03-29 20:15:52 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-03-29 20:15:52 +0200 |
commit | 2eb2383387d16fc919c07e1a6b9211406576b893 (patch) | |
tree | 83e5c5feb3b337552590d1ce7a4730d91081327f /cpp.h | |
parent | 12c12ebbdd3f843c87ba12c29727003f1f78a7ff (diff) |
Fix compiler structure
Diffstat (limited to 'cpp.h')
-rw-r--r-- | cpp.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,14 +21,14 @@ std::vector<Token> preprocessing_tokenize(const std::string& s); // phase 3 void preprocess(); // phase 4 void execution_charset_map(); // phase 5 void concatenate_strings(); // phase 6 -std::vector<Token> tokens_from_pptokens(std::vector<Token> pp_tokens); // phase 7.a -std::vector<Gram::TreeNode> analysis(std::vector<Token>); // phase 7.b -void translate(); // phase 7.c +std::vector<Token> tokens_from_pptokens(const std::vector<Token>& pp_tokens); // phase 7.a +std::vector<Gram::TreeNode> analysis(const std::vector<Token>&); // phase 7.b +void translate(const std::vector<Gram::TreeNode>& tree); // phase 7.c void instantiate(); // phase 8 void link(); // phase 9 // all phases of translation -void translate(const std::string& code); +void compile(const std::string& code); std::vector<uint8_t> getCode(); std::vector<uint8_t> getData(); |