udem-dlteam / pnut

🥜 A Self-Compiling C Transpiler Targeting Human-Readable POSIX Shell
https://pnut.sh
BSD 2-Clause "Simplified" License
425 stars 14 forks source link

Share environment code between exe and sh backend (WIP) #98

Open laurenthuberdeau opened 2 months ago

laurenthuberdeau commented 2 months ago

Context

As we work towards compiling TCC, we'll be making changes to how variables and types are scoped. To make it possible to share those new features between the exe and sh backends, they first need to share their environment code.