Show
Ignore:
Timestamp:
07/16/09 14:18:47 (4 months ago)
Author:
jmaessen
Message:

[testing] Some code for testing the type checking of comprehensions.
This code does everything longhand, and monomorphises everything, so
that the only challenge should be in inferring function parameters.

When this works we can create a polymorphic version, and from there
explore alternative desugarings.

Note that this code might contain bugs; there's no way of getting it
through the type checker and thus no way of knowing for sure.

Location:
trunk/ProjectFortress/LibraryBuiltin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fsi

    r3887 r3966  
    5252    opr juxtaposition(self, other:ZZ32): ZZ32 
    5353    opr DOT(self, other:ZZ32): ZZ32 
     54    opr DIV(self, other:ZZ32): ZZ32 
    5455end 
    5556 
  • trunk/ProjectFortress/LibraryBuiltin/CompilerBuiltin.fss

    r3887 r3966  
    2424                                            simpleIntArith.intSub => jIntSub, 
    2525                                            simpleIntArith.intMul => jIntMul, 
     26                                            simpleIntArith.intDiv => jIntDiv, 
    2627                                            simpleIntArith.intLT => jIntLT, 
    2728                                            simpleIntArith.intLE => jIntLE, 
     
    6667    opr juxtaposition(self, other:ZZ32): ZZ32 = jIntMul(self,other) 
    6768    opr DOT(self, other:ZZ32): ZZ32 = jIntMul(self,other) 
     69    opr DIV(self, other:ZZ32): ZZ32 = jIntDiv(self,other) 
    6870end 
    6971