lpython
lpython copied to clipboard
Fix duplicate read when paring python asr
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.
What is the status of this PR?