aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-07-17 18:56:29 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2016-07-17 18:56:29 +0200
commitea58b3887a7deba05e3fc85eb536038a547f8871 (patch)
treeb686e8985eb420f343636656711bfc24eab12613 /includes
parentc543a2f713184ccf6a5e9077dbfb985bdc7c5b4b (diff)
downloadelfinfo-ea58b3887a7deba05e3fc85eb536038a547f8871.tar.gz
elfinfo-ea58b3887a7deba05e3fc85eb536038a547f8871.tar.bz2
elfinfo-ea58b3887a7deba05e3fc85eb536038a547f8871.tar.xz
elfinfo-ea58b3887a7deba05e3fc85eb536038a547f8871.zip
lexer/parser:
o Renaming the ASSERT_K token to ASSERT. o Fixing a bug in the NAME regex where underscored where not allowed in certain names. o All ASSERT statements use string instead of NAME. o Improving STRING_ANY, allow many non-quote tokens instead of just one. Can probably replace the entire string rule with STRING_ANY now. o Fixing naming of '!', "~" and "?" operators. Ld: o Implement support for multiplication and division operators. o Better error messages.
Diffstat (limited to 'includes')
-rw-r--r--includes/trygvis/elfinfo/Ld.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/trygvis/elfinfo/Ld.h b/includes/trygvis/elfinfo/Ld.h
index 09dcaec..03559a2 100644
--- a/includes/trygvis/elfinfo/Ld.h
+++ b/includes/trygvis/elfinfo/Ld.h
@@ -10,11 +10,17 @@ namespace elfinfo {
class LdParseException : public std::runtime_error {
public:
- explicit LdParseException(const std::vector<std::string> messages) : runtime_error("Parse error"), messages(messages) {}
+ explicit LdParseException(const std::vector<std::string> &messages) :
+ runtime_error("Parse error"), messages(messages) {}
const std::vector<std::string> messages;
};
+class LdInternalErrorException : public std::runtime_error {
+public:
+ explicit LdInternalErrorException(const std::string &what) : runtime_error(what) {}
+};
+
enum class MemoryAttribute {
R, W, X
};
@@ -69,6 +75,7 @@ public:
LdScript load(std::string path);
void setDebug(bool debug);
+
private:
bool debug_;
};