-
The implied do loop in Fortran is kind of like a generator expression in Python. It is a loop that is an expression, so it returns an expression, typically an array (or a list in Python).
Just like…
-
The ASR documentation still uses the Fortran reference which should be removed and made generalized since it is a standalone library. The file that needs to be updated is: https://github.com/lcompiler…
-
## Translation Into Alloy Program
## Language Parser
- [ ] Implement transformer from Lark parsed tree into internal AST
## Verification in Alloy
### Translation from AST into Alloy program
…
-
Attempting to work the almost-equal example in the Lexing and Parsing section, I get an error.
Steps:
- modify Grammar/python.gram and Tokens (see diff below)
- execute `make regen-token regen-p…
-
A dimension instance of `(dimension ())` or `(dimension [])` is legal, according to the ASDL spec. What does it mean for a ttype instance like `(Integer 4 [[]])` that enjoys this dimension instance (i…
-
I noticed that while `dimension` is spec'ced as follows
dimension = (expr? start, expr? length)
concrete examples of dimension print out as in the following
(Integer 4 [2 3] [4]) # a …
-
Since we now only have a `Function`, we should only have `FunctionCall`. The idea is to unify the almost duplicate code that we currently have to have in almost all visitors regarding function/subrout…
-
The problem is that in ASDL, simple commands, assignment statements, for loops, etc. are all different types. But sometimes we want to treat them uniformly.
They should all have a left and a right…
-
```
ysh ysh-0.19.0$ var mydict = { one: 1 }
ysh ysh-0.19.0$ var place = &mydict
ysh ysh-0.19.0$ = place
[...]
RuntimeError: max recursion depth exceeded
FATAL [...]
```
bar-g updated
5 months ago
-
Now, I am planning to support #4136, for that we need to support reduction in `DoConcurrentLoop` grammar.
```diff
diff --git a/src/libasr/ASR.asdl b/src/libasr/ASR.asdl
index d1356151b..cc879b0d…