Marist-CMPT331-TOPL / adder

Adder is a small but usable subset of the Python language. It is named for the Blackadder comedy series, much as the Python language is named for Monty Python.
MIT License
0 stars 2 forks source link

Pull Request #17

Closed seanygberg closed 1 year ago

seanygberg commented 1 year ago

This is my implementation for some of the operators. I still have to figure out how to put these into the interpreter, but this is my current syntax.

rvarca22 commented 1 year ago

Would you not also have to add the operators '//' and '%' into the operator precedence table in Parser? I believe mod takes precedence over + and -

Gjidodaj02 commented 1 year ago

From what I see it looks like you implemented them well. Not too sure though since I settled with implementing easier operators lol, so its harder for me to compare.