diff options
Diffstat (limited to 'dev/LibCompiler/src/CCompilerARM64.cc')
| -rw-r--r-- | dev/LibCompiler/src/CCompilerARM64.cc | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/dev/LibCompiler/src/CCompilerARM64.cc b/dev/LibCompiler/src/CCompilerARM64.cc index d5b26be..af77a78 100644 --- a/dev/LibCompiler/src/CCompilerARM64.cc +++ b/dev/LibCompiler/src/CCompilerARM64.cc @@ -79,13 +79,13 @@ namespace Detail struct CompilerState final { std::vector<LibCompiler::SyntaxLeafList> fSyntaxTreeList; - std::vector<CompilerRegisterMap> kStackFrame; - std::vector<CompilerStructMap> kStructMap; + std::vector<CompilerRegisterMap> kStackFrame; + std::vector<CompilerStructMap> kStructMap; LibCompiler::SyntaxLeafList* fSyntaxTree{nullptr}; - std::unique_ptr<std::ofstream> fOutputAssembly; - std::string fLastFile; - std::string fLastError; - bool fVerbose; + std::unique_ptr<std::ofstream> fOutputAssembly; + std::string fLastFile; + std::string fLastError; + bool fVerbose; }; } // namespace Detail @@ -131,20 +131,20 @@ static std::string kRegisterPrefix = kAsmRegisterPrefix; ///////////////////////////////////////// -static std::vector<std::string> kFileList; -static LibCompiler::AssemblyFactory kFactory; -static bool kInStruct = false; -static bool kOnWhileLoop = false; -static bool kOnForLoop = false; -static bool kInBraces = false; -static bool kIfFound = false; -static size_t kBracesCount = 0UL; +static std::vector<std::string> kFileList; +static LibCompiler::AssemblyFactory kFactory; +static bool kInStruct = false; +static bool kOnWhileLoop = false; +static bool kOnForLoop = false; +static bool kInBraces = false; +static bool kIfFound = false; +static size_t kBracesCount = 0UL; /* @brief C compiler backend for C */ class CompilerFrontendARM64 final : public LibCompiler::ICompilerFrontend { public: - explicit CompilerFrontendARM64() = default; + explicit CompilerFrontendARM64() = default; ~CompilerFrontendARM64() override = default; LIBCOMPILER_COPY_DEFAULT(CompilerFrontendARM64); @@ -401,7 +401,7 @@ bool CompilerFrontendARM64::Compile(std::string text, const std::string file) if (text[text_index] == '=' && kInStruct) { Detail::print_error("assignement of value in struct " + text, - file); + file); continue; } |
