mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
feat: allow separating sample code and doc-comments
This commit is contained in:
parent
0c579fa6fb
commit
51cae591a3
15 changed files with 135 additions and 79 deletions
|
@ -116,13 +116,13 @@ impl Context {
|
|||
)
|
||||
.quantify();
|
||||
self.register_builtin_py_impl("dir!", t_dir, Immutable, vis, Some("dir"));
|
||||
self.register_py_builtin("print!", t_print, Some("print"), 95);
|
||||
self.register_py_builtin("print!", t_print, Some("print"), 81);
|
||||
self.register_builtin_py_impl("id!", t_id, Immutable, vis, Some("id"));
|
||||
self.register_builtin_py_impl("input!", t_input, Immutable, vis, Some("input"));
|
||||
self.register_builtin_py_impl("globals!", t_globals, Immutable, vis, Some("globals"));
|
||||
self.register_builtin_py_impl("locals!", t_locals, Immutable, vis, Some("locals"));
|
||||
self.register_builtin_py_impl("next!", t_next, Immutable, vis, Some("next"));
|
||||
self.register_py_builtin("open!", t_open, Some("open"), 212);
|
||||
self.register_py_builtin("open!", t_open, Some("open"), 198);
|
||||
let name = if cfg!(feature = "py_compatible") {
|
||||
"if"
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue