ammarbinfaisal / sahl

a programming language with channels and coroutines/threads
MIT License
9 stars 1 forks source link

Do not reconstruct the AST in semantic check #22

Closed ammarbinfaisal closed 1 year ago

ammarbinfaisal commented 1 year ago

Doing that I extremely stupid. Just change Expr enum to include struct of each type and have a ty field(Option) where required. I actually did this but then rm-rf-ed by mistake

ammarbinfaisal commented 1 year ago

Fixed by https://github.com/abooishaaq/sahl/commit/f066a702d17f01a22f431e581a339eb6dc0e9f1d