-
Notifications
You must be signed in to change notification settings - Fork 165
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
Shashikumar-ezhilarasu
wants to merge
1
commit into
lcompilers:main
Choose a base branch
from
Shashikumar-ezhilarasu:update-generalize-library
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
-- Abstract Semantic Representation (ASR) definition | ||
|
||
-- Documenations are available at: | ||
-- https://github.com/lfortran/lfortran/tree/main/doc/src/asr/asr.md | ||
-- Documentation is available at: | ||
-- https://github.com/lcompilers/lpython/tree/main/doc/src/asr/asr.md | ||
|
||
module ASR { | ||
|
||
|
@@ -87,7 +87,7 @@ expr | |
| IntrinsicElementalFunction(int intrinsic_id, expr* args, int overload_id, ttype? type, expr? value) | ||
| IntrinsicArrayFunction(int arr_intrinsic_id, expr* args, int overload_id, ttype? type, expr? value) | ||
| IntrinsicImpureFunction(int impure_intrinsic_id, expr* args, int overload_id, ttype? type, expr? value) | ||
| 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) | ||
| StructConstructor(symbol dt_sym, call_arg* args, ttype type, expr? value) | ||
| EnumTypeConstructor(symbol dt_sym, expr* args, ttype type, expr? value) | ||
| UnionTypeConstructor(symbol dt_sym, expr* args, ttype type, expr? value) | ||
|
@@ -125,7 +125,7 @@ expr | |
| SetConstant(expr* elements, ttype type) | ||
| SetLen(expr arg, ttype type, expr? value) | ||
| TupleConstant(expr* elements, ttype type) | ||
| TupleLen(expr arg, ttype type, expr value) | ||
| TupleLen(expr arg, ttype type, expr? value) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here. |
||
| TupleCompare(expr left, cmpop op, expr right, ttype type, expr? value) | ||
| TupleConcat(expr left, expr right, ttype type, expr? value) | ||
| TupleContains(expr left, expr right, ttype type, expr? value) | ||
|
@@ -216,12 +216,13 @@ ttype | |
| FunctionType(ttype* arg_types, ttype? return_var_type, abi abi, deftype deftype, string? bindc_name, bool elemental, bool pure, bool module, bool inline, bool static, symbol* restrictions, bool is_restriction) | ||
|
||
cast_kind = RealToInteger | IntegerToReal | LogicalToReal | RealToReal | IntegerToInteger | RealToComplex | IntegerToComplex | IntegerToLogical | RealToLogical | CharacterToLogical | CharacterToInteger | CharacterToList | ComplexToLogical | ComplexToComplex | ComplexToReal | ComplexToInteger | LogicalToInteger | RealToCharacter | IntegerToCharacter | LogicalToCharacter | UnsignedIntegerToInteger | UnsignedIntegerToUnsignedInteger | UnsignedIntegerToReal | UnsignedIntegerToLogical | IntegerToUnsignedInteger | RealToUnsignedInteger | CPtrToUnsignedInteger | UnsignedIntegerToCPtr | IntegerToSymbolicExpression | ListToArray | DerivedToBase | ||
|
||
storage_type = Default | Save | Parameter | ||
access = Public | Private | ||
intent = Local | In | Out | InOut | ReturnVar | Unspecified | ||
deftype = Implementation | Interface | ||
presence = Required | Optional | ||
abi = Source | LFortranModule | GFortranModule | BindC | BindPython | BindJS | Interactive | Intrinsic | ||
abi = Source | Module | BindC | BindPython | BindJS | Interactive | Intrinsic | External | ||
dimension = (expr? start, expr? length) | ||
alloc_arg = (expr a, dimension* dims, expr? len_expr, ttype? type) | ||
attribute = Attribute(identifier name, attribute_arg *args) | ||
|
@@ -241,6 +242,7 @@ cmpop = Eq | NotEq | Lt | LtE | Gt | GtE | |
integerboz = Binary | Hex | Octal | ||
arraybound = LBound | UBound | ||
arraystorage = RowMajor | ColMajor | ||
string_format_kind = FormatFortran | FormatC | FormatPythonPercent | FormatPythonFString | FormatPythonFormat | ||
string_format_kind = FormatCustom1 | FormatC | FormatPythonPercent | FormatPythonFString | FormatPythonFormat | ||
|
||
|
||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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 tonullptr
. Here,expr? value
refers to compile-time value, which can be absent sometimes.