Crishant / COMP360H_hw_1

Project 1: Starter
MIT License
0 stars 1 forks source link

Decide on what to add to Imp (Task 5) #1

Open n-aggarwal opened 7 months ago

n-aggarwal commented 7 months ago

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.

n-aggarwal commented 7 months ago

Idea: for-loop

n-aggarwal commented 7 months ago

Idea: modulo

cgonzalezt commented 7 months ago

switch-case

cgonzalezt commented 7 months ago

string concatenation

n-aggarwal commented 7 months ago

+=, -=, *=, /= operators

n-aggarwal commented 7 months ago

function calls

(If I am right, right now our language only supports 1 function-- main)

EDIT: Function calls do exist in our language already

n-aggarwal commented 7 months ago

else-if

(we only have if and else right now...)