Skip to content

Commit

Permalink
feat: added copyright() built-in function and updated shell exit expe…
Browse files Browse the repository at this point in the history
…rience.
  • Loading branch information
Almas-Ali committed Oct 29, 2024
1 parent 496475f commit 1655706
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/builtin_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ def execute_credits(self, exec_ctx: Context) -> RTResult[Value]:
print("Contributors:\n\tangelcaru (github.com/angelcaru)\n\tVardan2009 (github.com/Vardan2009)")
return RTResult[Value]().success(Null.null())

@args([])
def execute_copyright(self, exec_ctx: Context) -> RTResult[Value]:
print("Copyright (c) 2023-2024 Radon Software Foundation.\nAll Rights Reserved.")
return RTResult[Value]().success(Null.null())


def run(
fn: str,
Expand Down Expand Up @@ -725,6 +730,7 @@ def create_global_symbol_table() -> SymbolTable:
# Shell functions
ret.set("license", BuiltInFunction("license"))
ret.set("credits", BuiltInFunction("credits"))
ret.set("copyright", BuiltInFunction("copyright"))
ret.set("help", BuiltInFunction("help"))
ret.set("dir", BuiltInFunction("dir"))
# Built-in classes
Expand Down

0 comments on commit 1655706

Please sign in to comment.