uhmanoa-transpiler-project / shaka-scheme

The official repository for the UH Manoa Transpiler Project's Scheme interpreter, Shaka Scheme.
32 stars 24 forks source link

Numerics: BigInt Header and Initial Implementation #58

Closed 1010jms closed 6 years ago

1010jms commented 6 years ago

Created a header file for the BigInteger class that contains the definitions for the constructors as well as the getter, the conversion functions to Rational and Real, the basic arithmetic operators, and the comparison operators.

Created the initial cpp file that contains comments explaining which algorithms need to be implemented for each function (as well as a link to each algorithm) as well as which functions need to be tested and which functions still need to be figured out.

This pull request also contains a lot of cleanup that needed to be done due to a very messy rebase. Fortunately, all of the unit tests are working, but a majority of the "unit-rule" tests (e.g. "unit-rule-token" and "unit-rule-string") do not pass.

CinchBlue commented 6 years ago

The unit tests here are failing because the changes I made after I did something to the parser were not preserved when you rebase. You'll need to redo the rebase off of upstream/master but first you must roll back your current rebase. Make sure that it passes all of the unit test cases before you resubmit the pull request.

Make sure that you start your work in the future off of the most recent version of the upstream/master branch!