mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-25 07:33:32 +00:00
Starting the symbol reader
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user