Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
teaching:cc4101:tareas:2016-1:tarea1 [2016/04/08 15:27] – fmosso | teaching:cc4101:tareas:2016-1:tarea1 [2016/04/17 00:03] (current) – [Tarea 1 (Entrega: 20 de Abril 2016)] fmosso | ||
---|---|---|---|
Line 2: | Line 2: | ||
- | Esta tarea se distribuye con un archivo zip {{teaching: | + | Esta tarea se distribuye con un archivo zip {{:teaching: |
* La **carpeta A** contiene 3 archivos: main.rkt, tests.rkt, y machine.rkt. Los archivos main.rkt y tests.rkt son incompletos, | * La **carpeta A** contiene 3 archivos: main.rkt, tests.rkt, y machine.rkt. Los archivos main.rkt y tests.rkt son incompletos, | ||
Line 135: | Line 135: | ||
Los mensaje de error de tipo tienen que seguir el siguiente patrón: | Los mensaje de error de tipo tienen que seguir el siguiente patrón: | ||
<code scheme> | <code scheme> | ||
- | "Type error in expression <E> position <n>: expected <T1>, found < | + | "Type error in expression <E> position <n>: expected <T1> found < |
</ | </ | ||
Line 155: | Line 155: | ||
(TFun (TNum) (TBool)) | (TFun (TNum) (TBool)) | ||
> (typeof (parse '{fun {f : Num} : Bool 10})) | > (typeof (parse '{fun {f : Num} : Bool 10})) | ||
- | "Type error in expression fun position | + | "Type error in expression fun position |
> (typeof (parse '{{fun {f : Num} : Bool #t} #t})) | > (typeof (parse '{{fun {f : Num} : Bool #t} #t})) | ||
- | "Type error in expression app position 2: expected Num, found Bool" | + | "Type error in expression app position 2: expected Num found Bool" |
> (typeof (parse 'y)) | > (typeof (parse 'y)) | ||
"Type error in expression id position 1: No type for identifier: y" | "Type error in expression id position 1: No type for identifier: y" | ||
Line 170: | Line 170: | ||
> | > | ||
'{Num -> Bool} | '{Num -> Bool} | ||
+ | |||
+ | > | ||
+ | "Type error in expression + position 2: expected Num found Bool" | ||
> | > | ||
- | "Type error in expression if position 3: expected Num, found Bool" | + | "Type error in expression if position 3: expected Num found Bool" |
</ | </ |