.. (לתיקייה המכילה) | ||
I'm not sure what I should implement in the Pascal part. Specifically, should I implemenrt the "len" function you mentioned? | |
You must implement: 1. The 6 map functions mentioned in the assignment. 2. Usage examples: For these you must implement at least one "operation function" for each map function. i.e., you must implement at least one "int->int" function, at least one "string->int" function, etc. These functions can do whatever you want and you can name them however you like. Specifically, you don't have to implement the "len" function that was mentioned. You can implement any "string->int" function you want to. |
In the Pascal part, can we use internal functions like sin,cos,sqrt, etc.? | |
Yes, you can. |
What exactly should we do in the Java part? | |
You must implement: 1. The Mapper.map method. 2. Usage examples: At least one operation function for each combination of types for which there is a map function in the Pascal part. So you must implement one Integer->Integer function, one String->Integer function, etc. |
Do we have to import the type definitions and map functions from "ex1.pas" into "examples.pas"? | |
No. As written in the submission instructions, you need to duplicate all the type definitions and map functions to both of the files. |
Can we assume that the input arrays' indices are consecutive? | |
Yes, you can. |
Do the output arrays' indices need to be in the same range as the input arrays? | |
No, the output arrays indices will always start from 0 (even if the input array starts from another number). |
Should the file ex1.pas contain an empty statement part (i.e., the two lines: | |
No, the file ex1.pas shouldn't contain a statement part at all (not even those two lines). Note that it's ok that this file can't be compiled, but this should be the only problem in compiling it. So if you add these two lines to ex1.pas, it should compile without any errors/warnings. |