Starting the symbol reader

This commit is contained in:
Zoe Roux
2021-02-17 11:30:16 +01:00
parent 629c11d93a
commit f33593c51f
@@ -2,6 +2,7 @@
// Created by Zoe Roux on 2/6/21.
//
#include <regex>
#include "WlaDx.hpp"
namespace ComSquare::Debugger
@@ -9,8 +10,15 @@ namespace ComSquare::Debugger
std::vector<Label> WlaDx::parse(std::fstream symbolFile)
{
std::vector<Label> labels;
std::string line;
while (std::getline(symbolFile, line)) {
line = line.substr(0, line.rfind(';'));
std::smatch match;
std::regex re("\\[\\S+\\]");
if (!std::regex_search(line, match, re)
}
return labels;
}
}