From 2eb2383387d16fc919c07e1a6b9211406576b893 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 29 Mar 2020 20:15:52 +0200 Subject: Fix compiler structure --- cpp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp.h') diff --git a/cpp.h b/cpp.h index 467b268..571182a 100644 --- a/cpp.h +++ b/cpp.h @@ -21,14 +21,14 @@ std::vector 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 tokens_from_pptokens(std::vector pp_tokens); // phase 7.a -std::vector analysis(std::vector); // phase 7.b -void translate(); // phase 7.c +std::vector tokens_from_pptokens(const std::vector& pp_tokens); // phase 7.a +std::vector analysis(const std::vector&); // phase 7.b +void translate(const std::vector& 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 getCode(); std::vector getData(); -- cgit v1.2.3