Add option to not parse floating point numbers when using SimpleLexer

This commit is contained in:
Jan committed 2022-03-30 19:07:54 +02:00
1 parent b5cd357014
commit a092f76ec9
11 files changed
+41 -23

No files matched your search

@@ -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));