class Campa::Language
{Context} wrapping the core bindings that form the core for Campa (language).
It extends {Lisp::Core} to add
- (test-run ...) - (tests-report) - (print ...) - (println ...)
Constants
- FILES
- FUNS
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/campa/language.rb, line 11 def initialize super load_core_funs load_core_files end
Private Instance Methods
load_core_files()
click to toggle source
# File lib/campa/language.rb, line 36 def load_core_files loader = Campa::Core::Load.new FILES.each { |f| loader.call(Campa.root.join(f), env: self) } end
load_core_funs()
click to toggle source
# File lib/campa/language.rb, line 32 def load_core_funs FUNS.each { |label, fun| self[Symbol.new(label.to_s)] = fun } end