Skip to content

Commit

Permalink
Add a List to ASR as a dedicated container type
Browse files Browse the repository at this point in the history
  • Loading branch information
namannimmo10 committed Apr 6, 2022
1 parent 9a64fc7 commit 467f346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grammar/ASR.asdl
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ expr
| ConstantReal(float r, ttype type)
| ConstantComplex(float re, float im, ttype type)
| ConstantLogical(bool value, ttype type)
| ConstantList(expr* args, ttype type)
| ConstantSet(expr* elements, ttype type)
| ConstantTuple(expr* elements, ttype type)
| ConstantString(string s, ttype type)
Expand All @@ -244,6 +245,7 @@ ttype
| Character(int kind, int len, expr? len_expr, dimension* dims)
| Logical(int kind, dimension* dims)
| Set(ttype type)
| List(ttype type)
| Tuple(ttype* type)
| Derived(symbol derived_type, dimension* dims)
| Class(symbol class_type, dimension* dims)
Expand Down

0 comments on commit 467f346

Please sign in to comment.