Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / token.hpp
diff options
context:
space:
mode:
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;
};