Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / token.hpp
diff options
context:
space:
mode:
1 files changed, 7 insertions, 3 deletions
-rw-r--r--spasm/src/asm/token.hpp10
diff --git a/spasm/src/asm/token.hpp b/spasm/src/asm/token.hpp
index 364b315..8f18768 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
};
@@ -57,8 +58,10 @@ class Token
size_t lineno() const;
- int value_int() const;
- void set_int(int v) { _value_int = v; }
+ int64_t value_int() const;
+ void set_int(int64_t v) { _value_int = v; }
+
+ double value_double() const { return _value_double; }
const std::string& value_str() const;
@@ -67,7 +70,8 @@ class Token
size_t _lineno;
- int _value_int;
+ int64_t _value_int;
+ double _value_double;
std::string _value_str;
};