mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
LibCpp: Use lex_iterable() where applicable
This commit is contained in:
parent
606e05852f
commit
f91974677c
3 changed files with 12 additions and 16 deletions
|
@ -24,9 +24,7 @@ int main(int argc, char** argv)
|
|||
StringView content_view(content);
|
||||
|
||||
Cpp::Lexer lexer(content);
|
||||
auto tokens = lexer.lex();
|
||||
|
||||
for (auto& token : tokens) {
|
||||
lexer.lex_iterable([](auto token) {
|
||||
outln("{}", token.to_string());
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue