Bolt
Bolt copied to clipboard
Add support for variable (re)assignment
We have chosen := to mean assignment in our language.
let mut foo: Int
foo := 1
if toss.
foo += foo
Implementation Strategy
- Create a new
AssignStatementnode - Adjust the parser and scanner to be able to pick up the new node
- Handle
AssignStatementininfer()in the type checker