summaryrefslogtreecommitdiffhomepage
path: root/cpp.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp.h')
-rw-r--r--cpp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp.h b/cpp.h
index 467b268..571182a 100644
--- a/cpp.h
+++ b/cpp.h
@@ -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();