summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-28 11:26:02 -0700
committerGitHub <noreply@github.com>2017-06-28 11:26:02 -0700
commitb8e31688c6826475b5199468aedea0bc44c0adc1 (patch)
tree79b9227ef038d173d780a440035e616dc31104bb /source/slang/syntax.h
parentafe41a6c994a684cd646b4432a285ef959d0716b (diff)
parentd601921b71ed44835e8d4fa6f13ff7aefcf7649d (diff)
Merge pull request #48 from tfoleyNV/literal-suffix-fix
Fix handling of literal suffixes
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index 7289719f4..81d6f8e01 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -375,6 +375,7 @@ namespace Slang
UInt,
UInt64,
Float,
+ Double,
#if 0
Texture2D = 48,
TextureCube = 49,
@@ -485,6 +486,7 @@ namespace Slang
static ExpressionType* GetBool();
static ExpressionType* GetFloat();
+ static ExpressionType* getDoubleType();
static ExpressionType* GetInt();
static ExpressionType* GetUInt();
static ExpressionType* GetVoid();
@@ -1916,6 +1918,8 @@ namespace Slang
class ConstantExpressionSyntaxNode : public ExpressionSyntaxNode
{
public:
+ Token token;
+
enum class ConstantType
{
Int,