-
ASDL:
```c
| ListAppend(expr a, expr ele)
```
I'll be more expressive and explicit in Clojure, but wondered ... the list `a` has a `ttype` and the list `e` has a `ttype`. They must match, …
-
@czgdp1807 had a great idea here how to improve GoTo / GoToTarget: https://github.com/lcompilers/lpython/pull/1163#issuecomment-1263052400
Change `GoTo(int target_id, identifier name)` to `GoTo(stm…
-
- get rid of `__slots__` in ASDL ?
- class SimpleObj(int) in ASDL
Also maybe send a diff of `posixmodule.c` ?
-
*Original issue*: https://gitlab.com/lfortran/lfortran/-/issues/259
For some reason, Bison 3.7 fails to build our parser:
```
+ bison -Wall -d -r all parser.yy
time limit exceeded: 6.000000
time limi…
-
The doc says:
> Alternatively, you can declare a function before defining it:
```
terra isodd :: uint32 -> bool
```
What's the syntax for methods?
I tried:
```
terra T.method :: &T -> {}
…
-
@AlexImmer, @runame, @edaxberger: As you know, I'm currently working on last-layer Laplace for img2img tasks, e.g. autoencoder, image segmentation. We can't use the current implementation in this libr…
-
The following parser in Clojure has survived several rounds of ASR updates. It contains a docstring proposing formal (machine-checkable) nomenclature for ASR:
```clojure
(def asdl-grammar
"Pa…
-
This has two implications:
- LoopIR nodes can be accidantely mutated
- but at least there seems to be no aliasing problems between two nodes
- https://github.com/ChezJrk/asdl/blob/mas…
-
We could do it like this:
```diff
--- a/src/libasr/ASR.asdl
+++ b/src/libasr/ASR.asdl
@@ -193,7 +193,7 @@ stmt
| GoToTarget(int id, identifier name)
| If(expr test, stmt* body, stmt* o…
-
We do it with reflection rather than a macro
```
$ var x = 1
$ pp [x + 42]
x + 42 === 43
```
It can also handle a plain value
```
$ pp (x + 42)
43
```
One question is i…