brain icon indicating copy to clipboard operation
brain copied to clipboard

Operation Generation

Open sunjay opened this issue 7 years ago • 0 comments

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)
  • [ ] stdio (See spec in https://github.com/brain-lang/brain/issues/66)
    • [x] stdout
    • [ ] stdin

sunjay avatar Mar 03 '17 10:03 sunjay