-
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…
-
```diff
--- a/src/libasr/ASR.asdl
+++ b/src/libasr/ASR.asdl
@@ -343,6 +343,8 @@ expr
ttype
= Integer(int kind, dimension* dims)
+ | BitVector(int kind, dimension* dims)
+ | Modul…
-
From release 1.3. Not sure if it makes a difference but worth looking at since we'll eventually upgrade
https://oilshell.zulipchat.com/#narrow/stream/121539-oil-dev/topic/newer.20re2c.20versions
…
-
Example:
```py
a = all(0 < x < 20 for x in numbers)
```
causes Old parser Error:
```py
$ lpython --show-ast examples/expr2.py --tree
Traceback (most recent call last):
File "/…
-
```
import "regent"
local c = regentlib.c
task main()
var colors : ispace(int3d)
var dim = 0
if dim == 0 then
colors = ispace(int3d, int3d{2, 1, 1})
elseif dim == 1 then
c…
-
Hi!
Thanks for the great work. I'm trying to use the Laplace approximation in my work, but your package only supports MSE and CE, and the corresponding layers only support the nn.Module class. Is t…
-
related to #459
I am using pyenv 3.8.17 with pyenv-virtualenv 1.2.1(commit: c85c1c9e) on Pop OS. I created a virtual environment called wristband using
`pyenv virtualenv 3.8.17 wristband`.
How…
-
I'm not sure how serious an issue this is, but I've thought about it, and Till brought it up.
It is basically an "ASDL pretty printing format" that I made up. It's meant to be human readable. Som…
-
Right now the ASR builder is at https://github.com/lfortran/lfortran/blob/dca110d46606d068dbca0fb334b4bf612ab4011d/src/libasr/pass/intrinsic_function_registry.h#L220
It needs to be refactored:
*…
-
I am wondering if javalang has provided function that can reconstruct the sequence of tokens from AST.