From 3ce342b97b6c22b7ce6dded7be7b5c6bf9edcc04 Mon Sep 17 00:00:00 2001 From: Dimitar Trendafilov Date: Mon, 19 Nov 2018 23:49:15 +0200 Subject: Support for doubles in the assembler --- spasm/src/asm/token.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spasm/src/asm/token.hpp') 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; }; -- cgit v1.3.1-26-gb76a