Module: Esolang
- Defined in:
- lib/esolang.rb,
lib/refinements/refinements.rb,
lib/interpreters/ook_interpreter.rb,
lib/interpreters/base_interpreter.rb,
lib/interpreters/boolfuck_interpreter.rb,
lib/interpreters/brainfuck_interpreter.rb,
lib/interpreters/paintfuck_interpreter.rb,
lib/interpreters/smallfuck_interpreter.rb
Overview
“‘ruby using Esolang::Refinements “`
Defined Under Namespace
Modules: Interpreters, Refinements
Class Method Summary collapse
-
.boolfuck(code, input = '') ⇒ String
Interprets Boolfuck code.
-
.brainfuck(code, input = '') ⇒ String
Interprets Brainfuck code.
-
.ook(code, input = '') ⇒ String
Interprets Ook! code.
-
.paintfuck(code, iterations, width, height) ⇒ String
Interprets Paintfuck code.
-
.smallfuck(code, tape) ⇒ String
Interprets Smallfuck code.
Class Method Details
.boolfuck(code, input = '') ⇒ String
Interprets Boolfuck code.
24 25 26 |
# File 'lib/esolang.rb', line 24 def self.boolfuck(code, input = '') Interpreters::Boolfuck.new(code, input).run end |
.brainfuck(code, input = '') ⇒ String
Interprets Brainfuck code.
53 54 55 |
# File 'lib/esolang.rb', line 53 def self.brainfuck(code, input = '') Interpreters::Brainfuck.new(code, input).run end |
.ook(code, input = '') ⇒ String
Interprets Ook! code.
62 63 64 |
# File 'lib/esolang.rb', line 62 def self.ook(code, input = '') Interpreters::Ook.new(code, input).run end |
.paintfuck(code, iterations, width, height) ⇒ String
Interprets Paintfuck code.
44 45 46 |
# File 'lib/esolang.rb', line 44 def self.paintfuck(code, iterations, width, height) Interpreters::Paintfuck.new(code, iterations, width, height).run end |
.smallfuck(code, tape) ⇒ String
Interprets Smallfuck code.
33 34 35 |
# File 'lib/esolang.rb', line 33 def self.smallfuck(code, tape) Interpreters::Smallfuck.new(code, tape).run end |