Open n-aggarwal opened 9 months ago
Idea: for-loop
Idea: modulo
switch-case
string concatenation
+=, -=, *=, /= operators
function calls
(If I am right, right now our language only supports 1 function-- main)
EDIT: Function calls do exist in our language already
else-if
(we only have if and else right now...)
This task, should you choose to accept it, is to really show your stuff by adding some features to Imp. What kind of constructions are you used to having in languages you have programmed in that Imp is missing? Talk to me about syntax (so we can add it to the lexer and parser), write out appropriate inference rules, write some tests, then implement the new construction.