├── .gitignore ├── .rspec ├── .ruby-version ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── apricot.gemspec ├── benchmarks ├── factorial.rb └── interpolate.rb ├── bin └── apricot ├── examples ├── bot.apr ├── cinch-bot.apr ├── hanoi.apr ├── hello.apr ├── plot.apr ├── quine.apr └── sinatra.apr ├── kernel ├── core.apr └── repl.apr ├── lib ├── apricot.rb └── apricot │ ├── boot.rb │ ├── code_loader.rb │ ├── compiler.rb │ ├── cons.rb │ ├── errors.rb │ ├── generator.rb │ ├── identifier.rb │ ├── list.rb │ ├── macroexpand.rb │ ├── misc.rb │ ├── namespace.rb │ ├── reader.rb │ ├── repl.rb │ ├── ruby_ext.rb │ ├── scopes.rb │ ├── seq.rb │ ├── special_forms.rb │ ├── special_forms │ ├── def.rb │ ├── do.rb │ ├── dot.rb │ ├── fn.rb │ ├── if.rb │ ├── let.rb │ ├── loop.rb │ ├── quote.rb │ ├── recur.rb │ └── try.rb │ ├── variables.rb │ └── version.rb └── spec ├── compiler_spec.rb ├── fn_spec.rb ├── identifier_spec.rb ├── list_spec.rb ├── reader_spec.rb ├── spec_helper.rb └── special_forms_spec.rb /.gitignore: -------------------------------------------------------------------------------- 1 | *.rbc 2 | .rbx 3 | *.gem 4 | coverage 5 | -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --color --require spec_helper 2 | -------------------------------------------------------------------------------- /.ruby-version: -------------------------------------------------------------------------------- 1 | rubinius 2 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/Rakefile -------------------------------------------------------------------------------- /apricot.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/apricot.gemspec -------------------------------------------------------------------------------- /benchmarks/factorial.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/benchmarks/factorial.rb -------------------------------------------------------------------------------- /benchmarks/interpolate.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/benchmarks/interpolate.rb -------------------------------------------------------------------------------- /bin/apricot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/bin/apricot -------------------------------------------------------------------------------- /examples/bot.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/bot.apr -------------------------------------------------------------------------------- /examples/cinch-bot.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/cinch-bot.apr -------------------------------------------------------------------------------- /examples/hanoi.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/hanoi.apr -------------------------------------------------------------------------------- /examples/hello.apr: -------------------------------------------------------------------------------- 1 | (println "Hello, world!") 2 | -------------------------------------------------------------------------------- /examples/plot.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/plot.apr -------------------------------------------------------------------------------- /examples/quine.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/quine.apr -------------------------------------------------------------------------------- /examples/sinatra.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/examples/sinatra.apr -------------------------------------------------------------------------------- /kernel/core.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/kernel/core.apr -------------------------------------------------------------------------------- /kernel/repl.apr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/kernel/repl.apr -------------------------------------------------------------------------------- /lib/apricot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot.rb -------------------------------------------------------------------------------- /lib/apricot/boot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/boot.rb -------------------------------------------------------------------------------- /lib/apricot/code_loader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/code_loader.rb -------------------------------------------------------------------------------- /lib/apricot/compiler.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/compiler.rb -------------------------------------------------------------------------------- /lib/apricot/cons.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/cons.rb -------------------------------------------------------------------------------- /lib/apricot/errors.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/errors.rb -------------------------------------------------------------------------------- /lib/apricot/generator.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/generator.rb -------------------------------------------------------------------------------- /lib/apricot/identifier.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/identifier.rb -------------------------------------------------------------------------------- /lib/apricot/list.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/list.rb -------------------------------------------------------------------------------- /lib/apricot/macroexpand.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/macroexpand.rb -------------------------------------------------------------------------------- /lib/apricot/misc.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/misc.rb -------------------------------------------------------------------------------- /lib/apricot/namespace.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/namespace.rb -------------------------------------------------------------------------------- /lib/apricot/reader.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/reader.rb -------------------------------------------------------------------------------- /lib/apricot/repl.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/repl.rb -------------------------------------------------------------------------------- /lib/apricot/ruby_ext.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/ruby_ext.rb -------------------------------------------------------------------------------- /lib/apricot/scopes.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/scopes.rb -------------------------------------------------------------------------------- /lib/apricot/seq.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/seq.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/def.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/def.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/do.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/do.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/dot.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/dot.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/fn.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/fn.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/if.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/if.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/let.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/let.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/loop.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/loop.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/quote.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/quote.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/recur.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/recur.rb -------------------------------------------------------------------------------- /lib/apricot/special_forms/try.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/special_forms/try.rb -------------------------------------------------------------------------------- /lib/apricot/variables.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/lib/apricot/variables.rb -------------------------------------------------------------------------------- /lib/apricot/version.rb: -------------------------------------------------------------------------------- 1 | module Apricot 2 | VERSION = '0.0.2' 3 | end 4 | -------------------------------------------------------------------------------- /spec/compiler_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/compiler_spec.rb -------------------------------------------------------------------------------- /spec/fn_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/fn_spec.rb -------------------------------------------------------------------------------- /spec/identifier_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/identifier_spec.rb -------------------------------------------------------------------------------- /spec/list_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/list_spec.rb -------------------------------------------------------------------------------- /spec/reader_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/reader_spec.rb -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/special_forms_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apricot-lang/apricot/HEAD/spec/special_forms_spec.rb --------------------------------------------------------------------------------