lpython
lpython copied to clipboard
Python compiler
https://github.com/rebcabin/ABIE https://a.co/d/9RB0Vma mentioning this as a tracking item. It would be fantastic to get this famous book of planetary motion running in LPython.
``` (lp) ┌─(~/Documents/GitHub/lpython/integration_tests)───────────────────────────────────────(brian@MacBook-Pro:s001)─┐ └─(11:07:00 on vector-backend)──> lpython bindc03.py ──(Mon,Feb05)─┘ Internal Compiler Error: Unhandled exception Traceback (most recent call last): File "/Users/brian/Dropbox/Mac/Documents/GitHub/lpython/src/bin/lpython.cpp", line 1738 throw LCompilers::LCompilersException("No such file or directory: "...
CPython reports `invalid hexadecimal literal` but LPython reports `identifier` error. This hints at deeper problems in the LPython front end: repro: `expr43.py` ```python 0xBAD_BEEF 0x_BAD_BEEF 0x_BAD__BEEF ``` ```bash syntax error:...
What doesn't work ``` from lpython import S from sympy import Symbol, log, E, Pow, exp, pi def mmrv(e: S, x: S) -> list[S]: if e.args[0] != E: e1: S...
Snippet ``` def f(): a :list[i32] = [1, 2, 3, 4, 5] print(a.pop(-1)) print(a.pop(-4)) print(a) f() (lp) C:\Users\kunni\lpython>python try.py 5 1 [2, 3, 4] ``` On master - ``` (lp)...
In CPython, an assignment `b = a` stores the reference of `a` in `b`. This means that modifying `a` will reflect the changes in `b`. LPython however, creates a deep...
The build process freezes at the above step causing the system to eventually hang, with force shutdown being the only way out. The observation has been made multiple times. This...
Figure out a clean way to represent and implement string to int conversions in ASR. Then figure out how to hook it up in LPython. Discussed at https://lfortran.zulipchat.com/#narrow/stream/311866-LPython/topic/String.20to.20Int.20conversion.
https://github.com/lcompilers/lpython/actions/runs/8403614204/job/23014303486#step:13:1875
#1506 claimed to handle logical operations on strings, but as it turns out, things break. #2598 adds support for string literals, but the case of a string variable still fails...