summaryrefslogtreecommitdiff
path: root/source/slang/syntax.h
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-06-26 14:31:31 -0700
committerGitHub <noreply@github.com>2017-06-26 14:31:31 -0700
commit8824b102a5dd5ac1f08daedd897b5994b1bf8b6d (patch)
tree3669bf42ed6e971cde176cb422beab6c53158e8c /source/slang/syntax.h
parent0259ddb0a72d3b12278404847f6e30b63e97cfc3 (diff)
parent7d97d424c0a754ec49cccfc8af6c8983e0d06d80 (diff)
Merge pull request #44 from tfoleyNV/string-literal-parsing-fix
Fix parsing of string literals.
Diffstat (limited to 'source/slang/syntax.h')
-rw-r--r--source/slang/syntax.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/syntax.h b/source/slang/syntax.h
index 5eb62462e..7a1701b88 100644
--- a/source/slang/syntax.h
+++ b/source/slang/syntax.h
@@ -1917,7 +1917,10 @@ namespace Slang
public:
enum class ConstantType
{
- Int, Bool, Float
+ Int,
+ Bool,
+ Float,
+ String,
};
ConstantType ConstType;
union
@@ -1925,6 +1928,7 @@ namespace Slang
int IntValue;
FloatingPointLiteralValue FloatValue;
};
+ String stringValue;
virtual RefPtr<SyntaxNode> Accept(SyntaxVisitor * visitor) override;
};