parser: Add recursive descent parser for AST. TODO: Error recovery and synchronization.

This commit is contained in:
2023-10-16 22:50:15 -05:00
parent 0a99a37bd8
commit b89ed307a2
2 changed files with 405 additions and 3 deletions

View File

@@ -8,8 +8,8 @@ Friday each month.
- [x] Decide on a minimal set of keywords and operators to support
- [x] Lex an entire Rust source file (minus generics, paths, and lifetimes)
- [x] Write expression grammar
- [ ] Write AST for expression grammar
- [ ] Write parser for AST
- [x] Write AST for expression grammar
- [x] Write parser for AST
- [ ] Create tests for parser (and AST)
- [ ] Parse `dummy.cl` into a valid AST
- [ ] Pretty printer, for debugging