-
Notifications
You must be signed in to change notification settings - Fork 2
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
Dimensions? #6
Comments
Can you give an example? I can't reproduce it. The following Fortran code: integer :: x(2:4, 3) Prints as:
Which already seems exactly in the form that you want.
Yes, I would recommend to only use long form. We use short form in AST, but it doesn't seem worth it, because one looks at it infrequently, and when one does look at it, it's better to use longform so that one knows exactly what nodes are in there. |
Investigating ... I thought I saw this in one of the LPython |
I noticed that while
dimension
is spec'ced as followsconcrete examples of dimension print out as in the following
instead of as
This is surprising because 2, 3, and 4 in
[2 3] [4]
are notexpr
s.Is this just shorthand in the printout? Is the long-form acceptable input to ASR processors?
The text was updated successfully, but these errors were encountered: