mnbujold / c415-compiler

Fall 2012 CMPUT 415 Compiler Course
0 stars 3 forks source link

Division with real numbers? #32

Closed James-Osgood closed 11 years ago

James-Osgood commented 11 years ago

In test g11.pal, the '/' operator does not allow for division by integers, according to our compiler.

Is this actually legal?

dchui1 commented 11 years ago

Oops...just looked at the PAL spec and we should be able to use ints for /, but it has to return a real...

div is int only though

On Sat, Nov 24, 2012 at 4:08 PM, James Osgood notifications@github.comwrote:

In test g11.pal, the '/' operator does not allow for division by integers, according to our compiler.

Is this actually legal?

— Reply to this email directly or view it on GitHubhttps://github.com/mnbujold/c415-compiler/issues/32.