summaryrefslogtreecommitdiff
path: root/source/slang/lexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/lexer.h')
-rw-r--r--source/slang/lexer.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/slang/lexer.h b/source/slang/lexer.h
index 85aca77dd..593e07c22 100644
--- a/source/slang/lexer.h
+++ b/source/slang/lexer.h
@@ -75,7 +75,8 @@ namespace Slang
void initialize(
SourceView* sourceView,
DiagnosticSink* sink,
- NamePool* namePool);
+ NamePool* namePool,
+ MemoryArena* memoryArena);
~Lexer();
@@ -97,6 +98,8 @@ namespace Slang
TokenFlags tokenFlags;
LexerFlags lexerFlags;
+
+ MemoryArena* memoryArena;
};
// Helper routines for extracting values from tokens
@@ -106,8 +109,8 @@ namespace Slang
typedef int64_t IntegerLiteralValue;
typedef double FloatingPointLiteralValue;
- IntegerLiteralValue getIntegerLiteralValue(Token const& token, String* outSuffix = 0);
- FloatingPointLiteralValue getFloatingPointLiteralValue(Token const& token, String* outSuffix = 0);
+ IntegerLiteralValue getIntegerLiteralValue(Token const& token, UnownedStringSlice* outSuffix = 0);
+ FloatingPointLiteralValue getFloatingPointLiteralValue(Token const& token, UnownedStringSlice* outSuffix = 0);
}
#endif