Commit graph

6 commits

Author SHA1 Message Date
33c4edf91d
feat(grammar): meta-commands must be followed by end-of-file 2025-06-04 14:06:57 +02:00
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
c863d71409
feat(grammar): add grammar file 2025-05-30 15:47:37 +02:00