ComSquare
WlaDx.hpp
Go to the documentation of this file.
1 //
2 // Created by Zoe Roux on 2/6/21.
3 //
4 
5 #pragma once
6 
8 #include <fstream>
9 
11 {
13  class WlaDx {
14  public:
18  static std::vector<Label> parse(std::ifstream &symbolFile);
23  static std::string _parseLabels(std::map<std::string, Label> &labels, std::ifstream &symbolFile);
28  static std::string _parseDefinitions(std::map<std::string, Label> &labels, std::ifstream &symbolFile);
32  static std::string _cleanLine(std::string line);
33  };
34 }
ComSquare::Debugger::CPU::WlaDx::parse
static std::vector< Label > parse(std::ifstream &symbolFile)
Parse the whole file.
Definition: WlaDx.cpp:11
ComSquare::Debugger::CPU
Definition: CPUDebug.cpp:17
ComSquare::Debugger::CPU::WlaDx::_parseLabels
static std::string _parseLabels(std::map< std::string, Label > &labels, std::ifstream &symbolFile)
Parse labels name & addresses (the [labels] section)
Definition: WlaDx.cpp:37
ComSquare::Debugger::CPU::WlaDx::_cleanLine
static std::string _cleanLine(std::string line)
Remove comments, indentation & trailing spaces from a line.
Definition: WlaDx.cpp:74
CPUDebug.hpp
ComSquare::Debugger::CPU::WlaDx
Class to parse WLA-DX symbol files.
Definition: WlaDx.hpp:13
ComSquare::Debugger::CPU::WlaDx::_parseDefinitions
static std::string _parseDefinitions(std::map< std::string, Label > &labels, std::ifstream &symbolFile)
Parse definitions (and size of labels) (the [definitions] section)
Definition: WlaDx.cpp:54