Cleanup parser statements, add delete and insert statement, add TASKS.md for tracking tasks

This commit is contained in:
Pablu
2025-12-02 17:06:27 +01:00
parent f6ca16b1f0
commit e07bb9e496
10 changed files with 438 additions and 266 deletions

View File

@@ -0,0 +1,15 @@
package sql
func (p *Parser) parseDelete() (*DeleteStatement, error) {
if !p.expectSequence(FROM, IDENT) {
return nil, p.unexpectedToken(INTO)
}
res := DeleteStatement{}
_, _, res.Table = p.rescan()
p.consumeUntilOne(50, EOF, SEMI)
return &res, nil
}