Module: Brainfucktt
- Defined in:
- lib/brainfucktt.rb,
lib/brainfucktt/byte.rb,
lib/brainfucktt/data.rb,
lib/brainfucktt/node.rb,
lib/brainfucktt/repl.rb,
lib/brainfucktt/errors.rb,
lib/brainfucktt/parser.rb,
lib/brainfucktt/language.rb,
lib/brainfucktt/language/loop.rb,
lib/brainfucktt/language/tree.rb,
lib/brainfucktt/conversion_helpers.rb,
lib/brainfucktt/language/input_byte.rb,
lib/brainfucktt/language/output_byte.rb,
lib/brainfucktt/language/decrement_byte.rb,
lib/brainfucktt/language/increment_byte.rb,
lib/brainfucktt/language/decrement_pointer.rb,
lib/brainfucktt/language/increment_pointer.rb
Overview
A Brainfuck interpreter built in Ruby using Treetop.
Defined Under Namespace
Modules: ConversionHelpers, Language Classes: Byte, Data, Error, InvalidByteError, InvalidOffsetError, InvalidOptionsError, Node, Parser, ParserError, REPL
Class Method Summary collapse
-
.parse(code) ⇒ Brainfucktt::Parser
Parse the given Brainfuck code.
-
.run(code = nil, options = {}) ⇒ Object
Parse and run the given Brainfuck code.
Class Method Details
.parse(code) ⇒ Brainfucktt::Parser
Parse the given Brainfuck code.
17 18 19 |
# File 'lib/brainfucktt.rb', line 17 def parse(code) Parser.parse(code) end |