feat: add ReDef.t_spec

This commit is contained in:
Shunsuke Shibayama 2024-08-11 14:18:15 +09:00
parent cd9973e800
commit 79b1c1394d
4 changed files with 10 additions and 4 deletions

View file

@ -897,7 +897,7 @@ impl Context {
Str,
vec![kw(KW_PAT, Str), kw(KW_INTO, Str)],
None,
vec![],
vec![kw(KW_COUNT, Int)],
None,
Str,
);

View file

@ -744,6 +744,7 @@ const KW_EPSILON: &str = "epsilon";
const KW_PATH: &str = "Path";
const KW_NDIGITS: &str = "ndigits";
const KW_BYTES_OR_BUFFER: &str = "bytes_or_buffer";
const KW_COUNT: &str = "count";
pub fn builtins_path() -> PathBuf {
erg_pystd_path().join("builtins.d.er")