Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add Ratio(Complex) type #423

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Conversation

GreasySlug
Copy link
Member

@GreasySlug GreasySlug commented Apr 27, 2023

Fixes #218.

Changes proposed in this PR:

  • Add Ratio type
    • Add ratio.rs
    • Add _erg_ratio.py
  • Add Complex type
    • Implement complex type by using ratio.rs
    • Add _erg_complex.py
    • Add ComplexLit, Im token
    • parse Im token
    • convert Im token and num calc to ComplexLit
  • Improve Int, Nat, Bool type

Currently known bugs

  • import "consts"
    infinite loop? or so long runtime
  • tests/should_ok/structural.er
  • mut_array.er
  • Cannot define Float type
  • print! 0.3
    runtime is 3/10 but test code eval is 0.3

@mtshiba

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define Ratio(Complex) type
1 participant