remoo69 / Compiler-Sheesh

Compiler for the self-developed language Sheesh#.
MIT License
2 stars 1 forks source link

detecting numerical limits in expressions #50

Open jldav1d opened 2 weeks ago

jldav1d commented 2 weeks ago

Expected: Semantic Error Actual: No Semantic Errors

Code:

sheesh(){
    whole x#
    whole a = 10000#
    x = 30000 + a#
}

The expression above exceeds the m,aximum value for whole (40,000 > 32,767).

remoo69 commented 1 week ago

noted