Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / token.hpp
diff options
context:
space:
mode:
Commit3ce342b97b6c22b7ce6dded7be7b5c6bf9edcc04 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-11-19 23:49:15 +0200
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2018-11-21 21:20:34 +0200
Files8a6bc5aa0fb2fcc3c9589e53b91bc316141c7cda /spasm/src/asm/token.hpp
IPL-3ce342b97b6c22b7ce6dded7be7b5c6bf9edcc04.tar
IPL-3ce342b97b6c22b7ce6dded7be7b5c6bf9edcc04.tar.gz
IPL-3ce342b97b6c22b7ce6dded7be7b5c6bf9edcc04.zip
Parent36711f22e4d3449d75f8412654330a7ca5c3275a (diff)
Support for doubles in the assembler
1 files changed, 4 insertions, 0 deletions
-rw-r--r--spasm/src/asm/token.hpp4
diff --git a/spasm/src/asm/token.hpp b/spasm/src/asm/token.hpp
index 364b315..6c64e89 100644
--- a/spasm/src/asm/token.hpp
+++ b/spasm/src/asm/token.hpp
@@ -45,6 +45,7 @@ class Token
// Register,
Integer,
XInteger,
+ FloatingPoint,
EndInput,
NotUsed
};
@@ -60,6 +61,8 @@ class Token
int value_int() const;
void set_int(int v) { _value_int = v; }
+ double value_double() const { return _value_double; }
+
const std::string& value_str() const;
private:
@@ -68,6 +71,7 @@ class Token
size_t _lineno;
int _value_int;
+ double _value_double;
std::string _value_str;
};