brain
brain copied to clipboard
Operation Generation
Be able to generate operations for every part of the AST.
- [x] block
- [x] supports last statement as return type (using .pop() on the provided statements)
- [x] statement
- [x] declaration
- [x] assignment
- [x] while loop
- [ ] expression
- [x] identifier
- [x] string literal
- [ ] tests
- [x] numeric literal
- [ ] tests
- [x] call
- [ ] access
- [x] branch
- [ ] primitives
- [ ] boolean
- [x] boolean and/or/not (#53)
- [ ] comparison operators (#52)
- [x] array
- [x] Split ScopeItem into ScopeType and ScopeItem
- [x] Make two separate hash tables in scope for types and for items
- [x] u8 (increment, decrement)
- [ ] boolean
- [ ] stdio (See spec in https://github.com/brain-lang/brain/issues/66)
- [x] stdout
- [ ] stdin