wyvernlang / wyvern

The Wyvern programming language.
http://wyvernlang.github.io/
GNU General Public License v2.0
552 stars 65 forks source link

Allow Java Interop with Wyvern Booleans and Rationals #52

Open RobbieMcKinstry opened 8 years ago

RobbieMcKinstry commented 8 years ago

This issue will require the creation of tests, as well as the supporting compiler logic, to allow Wyvern rationals and booleans can be interoperated with Java booleans and doubles.

RobbieMcKinstry commented 8 years ago

I'm going to take this one over the next day or so.

RobbieMcKinstry commented 8 years ago

The process for this guy is going to be awfully similar to https://github.com/wyvernlang/wyvern/issues/38

RobbieMcKinstry commented 8 years ago

Looks like Booleans don't type check in the IL yet. That might be a prereq to this story. I'm going to write a test to see if that's true.

RobbieMcKinstry commented 8 years ago

Confirmed. Simple bools fail. I'm going to look at that in more detail.

RobbieMcKinstry commented 8 years ago

Added some tests about this here. @JonathanAldrich is going to work on design of booleans, perhaps as a library.

JonathanAldrich commented 8 years ago

Update: I believe interop works for bools now (can't point to a test, would be nice to pinpoint one, but I think the functionality was exercised at some point). However, Rationals have not really been designed or implemented.