mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 14:58:10 -05:00
Add option to not parse floating point numbers when using SimpleLexer
This commit is contained in:
@ -111,7 +111,8 @@ namespace test::parsing::simple::expression
|
||||
|
||||
SimpleLexer::Config lexerConfig;
|
||||
lexerConfig.m_read_strings = true;
|
||||
lexerConfig.m_read_numbers = true;
|
||||
lexerConfig.m_read_integer_numbers = true;
|
||||
lexerConfig.m_read_floating_point_numbers = true;
|
||||
lexerConfig.m_emit_new_line_tokens = false;
|
||||
SimpleExpressionMatchers(true, true, true, true, true).ApplyTokensToLexerConfig(lexerConfig);
|
||||
m_lexer = std::make_unique<SimpleLexer>(m_stream.get(), std::move(lexerConfig));
|
||||
|
Reference in New Issue
Block a user