lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.5k stars 158 forks source link

Fix duplicate read when paring python asr #2541

Open syheliel opened 7 months ago

syheliel commented 7 months ago

fix issue #2475. I create parse_python_source to accept source code literal input to avoid additional file read.

Note that there are still mutiple codes sharing the similar logic, like https://github.com/lcompilers/lpython/blob/main/src/bin/lpython.cpp#L254 . If this modification is accepted, I will fix them in this PR later.

Thirumalai-Shaktivel commented 7 months ago

What is the status of this PR?