diff options
Diffstat (limited to 'source/slang/lexer.h')
| -rw-r--r-- | source/slang/lexer.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/lexer.h b/source/slang/lexer.h index 5bcfc0f4a..53bfc0999 100644 --- a/source/slang/lexer.h +++ b/source/slang/lexer.h @@ -91,6 +91,12 @@ namespace Slang // Helper routines for extracting values from tokens String getStringLiteralTokenValue(Token const& token); String getFileNameTokenValue(Token const& token); + + typedef unsigned long long IntegerLiteralValue; + typedef double FloatingPointLiteralValue; + + IntegerLiteralValue getIntegerLiteralValue(Token const& token, String* outSuffix = 0); + FloatingPointLiteralValue getFloatingPointLiteralValue(Token const& token, String* outSuffix = 0); } #endif
\ No newline at end of file |
