-
Notifications
You must be signed in to change notification settings - Fork 164
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
String to int conversion in ASR #2554
Comments
It looks like we already have some support for string to int conversion. % cat examples/expr2.py
def main():
x: str = "123"
print(int(x))
main()
% python examples/expr2.py
123
% lpython_in_main examples/expr2.py
123 |
I think we just need to polish the existing support. |
@Shaikh-Ubaid I think we should support the conversion mechanism which |
The conversion mechanism for |
Figure out a clean way to represent and implement string to int conversions in ASR.
Then figure out how to hook it up in LPython.
Discussed at https://lfortran.zulipchat.com/#narrow/stream/311866-LPython/topic/String.20to.20Int.20conversion.
The text was updated successfully, but these errors were encountered: