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

Generalized the library by removing Fortran-specific references resolving issue #554 #2818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shashikumar-ezhilarasu
Copy link

Issue Description:
The current implementation of the library contains Fortran-specific references that limit its applicability to environments and languages other than Fortran. Specifically, the abi, tbind, and several other components are tightly coupled to Fortran conventions and terminology, making the library less flexible for use in a broader range of programming languages and systems.

Proposed Solution:
This pull request addresses the issue by removing the Fortran-specific references and generalising the code. The updates ensure that the library can be easily integrated into diverse programming environments. Specifically, changes have been made to the abi, tbind, and other related components, allowing them to support a wider range of language bindings and configurations.

By making these changes, the library becomes more modular and adaptable, improving its portability and making it more suitable for modern, multi-language development environments.
Can you please review this and let me know the changes to be done .Thank you !

| TypeInquiry(int inquiry_id, ttype arg_type, expr? arg, ttype type, expr value)
| TypeInquiry(int inquiry_id, ttype arg_type, expr? arg, ttype type, expr? value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not correct actually. expr? means a field which is optional and can be set to nullptr. Here, expr? value refers to compile-time value, which can be absent sometimes.

| TupleLen(expr arg, ttype type, expr value)
| TupleLen(expr arg, ttype type, expr? value)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

@kmr-srbh
Copy link
Contributor

LPython is a sister project of LFortran and they share a similar ASR design. I think this PR is probably not required.

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.

2 participants