Commit graph

11 commits

Author SHA1 Message Date
e78511f692
feat(parser): implement semicolon-separated statements
Add support for semicolon-terminated statements according to the
updated grammar. This change enables executing multiple SQL statements
in a single input by separating them with semicolons. Key improvements
include:
- Update grammar to require semicolons after statements
- Add Semicolon token to the tokenizer
- Implement error recovery by skipping to next semicolon on parse errors
- Create helper functions for checking semicolons in statement parsers
- Add tests for multiple statements and error conditions
2025-06-03 19:06:54 +02:00
28cb288eaf
feat(parser): implement insert command parsing
Implements the parse_insert_command function to handle the insert
statement according to the grammar definition. The function now
correctly parses the command format insert int string string and creates
a structured Statement::Insert with the id, username, and email fields.
2025-06-03 17:48:36 +02:00
315703d46b
feat(meta): version command 2025-05-31 16:04:56 +02:00
2dead7de0a
feat(meta): add about meta-command 2025-05-30 15:58:07 +02:00
f259b079b7
feat(tokenizer): parse integers 2025-05-17 16:22:25 +02:00
faedfadeab
refactor(error_report): remove dead code 2025-05-10 10:42:32 +02:00
6b49d3ca14 refactor(parsing): remove old FromStr-based parser implementation 2025-05-04 18:25:42 +02:00
cbc4a4755c feat(tokenizer): recognize meta-commands 2025-05-04 13:35:31 +02:00
848775587e tests(cmd): ensure wrong statements are recognized 2025-05-03 21:21:26 +02:00
711d51090e refactor(meta-command): have execute be a member function 2025-05-02 20:46:33 +02:00
ee23572983 refactor: pull things into own files, have a library 2025-05-02 20:43:55 +02:00