1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00
serenity/Userland/Libraries/LibSQL
Timothy Flynn 418884ab64 LibSQL: Add Parser::parse_comma_separated_list helper
A quite common semantic emerged for parsing comma-separated expressions:

    consume(TokenType::ParenOpen);

    do {
        // do something

        if (!match(TokenType::Comma))
            break;

        consume(TokenType::Comma);
    } while (!match(TokenType::Eof));

    consume(TokenType::ParenClose);

Add a helper to do the bulk of the while loop.
2021-04-23 22:36:07 +02:00
..
Tests LibSQL: Fix handling of optional AS keywords 2021-04-23 22:36:07 +02:00
AST.h AK: Rename adopt() to adopt_ref() 2021-04-23 16:46:57 +02:00
CMakeLists.txt LibSQL: Add unit testing of the SQL parser 2021-04-20 18:28:34 +02:00
Forward.h LibSQL: Parse (most of) SELECT statement 2021-04-22 18:08:15 +02:00
Lexer.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Lexer.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Parser.cpp LibSQL: Add Parser::parse_comma_separated_list helper 2021-04-23 22:36:07 +02:00
Parser.h LibSQL: Add Parser::parse_comma_separated_list helper 2021-04-23 22:36:07 +02:00
Token.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Token.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00