mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-27 19:59:07 +00:00
Merge branch 'main' into improve-repl
This commit is contained in:
commit
c22cd79a89
16 changed files with 574 additions and 66 deletions
|
@ -296,10 +296,13 @@ impl ScriptGenerator {
|
|||
|
||||
// TODO: more smart way
|
||||
fn replace_import(src: &str) -> String {
|
||||
src.replace("from _erg_nat import Nat", "")
|
||||
src.replace("from _erg_nat import NatMut", "")
|
||||
.replace("from _erg_nat import Nat", "")
|
||||
.replace("from _erg_int import IntMut", "")
|
||||
.replace("from _erg_int import Int", "")
|
||||
.replace("from _erg_bool import BoolMut", "")
|
||||
.replace("from _erg_bool import Bool", "")
|
||||
.replace("from _erg_str import StrMut", "")
|
||||
.replace("from _erg_str import Str", "")
|
||||
.replace("from _erg_array import Array", "")
|
||||
.replace("from _erg_range import Range", "")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue