Merge branch 'main' into improve-repl

This commit is contained in:
Cai Bingjun 2023-02-05 14:07:08 +08:00 committed by GitHub
commit c22cd79a89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 574 additions and 66 deletions

View file

@ -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", "")