ladybird/Userland/Libraries/LibSQL
Timothy Flynn a11f49f627 LibSQL: Add Parser::consume_if helper
The following is a common (and soon to be *very* common) expression:

    if (match(token_type))
        consume();

Using consume_if() makes this a bit simpler and makes it less likely to
forget to invoke consume() after the match().
2021-04-21 21:37:55 +02:00
..
Tests LibSQL: Parse DROP TABLE statement 2021-04-20 18:28:34 +02:00
AST.h LibSQL: Parse DROP TABLE statement 2021-04-20 18:28:34 +02:00
CMakeLists.txt LibSQL: Add unit testing of the SQL parser 2021-04-20 18:28:34 +02:00
Lexer.cpp LibSQL: Lex string and blob literals 2021-04-21 21:37:55 +02:00
Lexer.h LibSQL: Lex string and blob literals 2021-04-21 21:37:55 +02:00
Parser.cpp LibSQL: Add Parser::consume_if helper 2021-04-21 21:37:55 +02:00
Parser.h LibSQL: Add Parser::consume_if helper 2021-04-21 21:37:55 +02:00
Token.cpp LibSQL: Introduce a SQL library with a tokenizer 2021-04-20 18:28:34 +02:00
Token.h LibSQL: Lex string and blob literals 2021-04-21 21:37:55 +02:00