Website Summary Files Commits Branches @commit @diff @stats
path: root / spasm / src / asm / token.hpp
diff options
context:
space:
mode:
Commit4fca8e8e6c1056aed11437c87e9175232b48c8f4 (patch)
Author
 dtrendafilov <trendafilov.dn@gmail.com>
2018-11-22 16:04:22 +0200
Committer
 GitHub <noreply@github.com>
2018-11-22 16:04:22 +0200
Filesbda85506ae253afd73d3ab36d3685b4e5bae3847 /spasm/src/asm/token.hpp
IPL-4fca8e8e6c1056aed11437c87e9175232b48c8f4.tar
IPL-4fca8e8e6c1056aed11437c87e9175232b48c8f4.tar.gz
IPL-4fca8e8e6c1056aed11437c87e9175232b48c8f4.zip
Parent75faff8b35b8f9bfa0a00b973e9323c1dc4c614e (diff)
Parentddc50fe944df0a33386a3213c8021f07ac8ffdd9 (diff)
Merge pull request #62 from SofiaCPP/feature/double
Feature/double
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;
};