flofriday / Moose

🐐 A new fun programming language
MIT License
6 stars 1 forks source link

Trenary operator #38

Closed flofriday closed 1 year ago

flofriday commented 1 year ago

I think I have implemented the ternary operator correctly however, I am not that familiar with the parser and it took me some time to figure out how to integrate them into the parser.

The double question mark operator doesn't work yet correctly because of issue #37 but otherwise both are implemented.

I still have to add some testcases (please don't merge yet) but could you maybe look over the code and give me a quick review?

Jozott00 commented 1 year ago

Yes sure! 👍🏼

flofriday commented 1 year ago

Ok, I added some tests and everything seams to work so far. I'm ready to merge if you are.