fe-lang / sonatina

Apache License 2.0
47 stars 6 forks source link

Implement Range Checks for Immediate Values in Global Variable Initializers #89

Open Y-Nak opened 6 days ago

Y-Nak commented 6 days ago

Currently, the Sonatina-ir parser does not perform range validation on integer Immediate values within global variable initializers. This lack of checking can lead to the assignment of out-of-range integer values, potentially causing unexpected behavior or runtime errors.

Proposed Solution: