mirror of
https://github.com/vonhyou/lisp-interpreter.git
synced 2025-06-08 02:02:01 +00:00
rename file & add copyright
This commit is contained in:
parent
c265b81c43
commit
ba6c01dd80
1 changed files with 6 additions and 1 deletions
|
@ -101,8 +101,13 @@ def lisp_eval(elem, env = $global_env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
$copyleft = "Copyleft (Ↄ) 2021 vonhyou@lenva.tech
|
||||||
|
This is an open source software, you can view it's source code on github:
|
||||||
|
https://github.com/vonhyou/lisp-interpreter\n\n"
|
||||||
|
|
||||||
##### REPL
|
##### REPL
|
||||||
def repl(prompt = 'minlisp ƛ>> ')
|
def repl(prompt = 'prol ƛ>> ')
|
||||||
|
puts $copyleft
|
||||||
loop do
|
loop do
|
||||||
print prompt
|
print prompt
|
||||||
val = lisp_eval(parse(gets.chomp))
|
val = lisp_eval(parse(gets.chomp))
|
Loading…
Add table
Add a link
Reference in a new issue