julelang / jule

Effective programming language to build efficient, fast, reliable and safe software while maintaining simplicity
https://jule.dev
BSD 3-Clause "New" or "Revised" License
128 stars 13 forks source link

refactoring: use structures for object code generation #88

Closed mertcandav closed 7 months ago

mertcandav commented 7 months ago

Description

Current implementation uses functions and globals to build object code. This approach has critical technical debt and not maintainable. Also uses global variables and etc which is prevents multi-tasking.

This PR implements same algorithm with structures. This approach makes algorithm more multi-tasking friendly because all structure instances are independent from others. Also increases maintainability, reduces technical debt.

Checklist