Module: Braingasm
- Defined in:
- lib/braingasm.rb,
lib/braingasm/errors.rb,
lib/braingasm/parser.rb,
lib/braingasm/machine.rb,
lib/braingasm/options.rb,
lib/braingasm/version.rb,
lib/braingasm/tokenizer.rb
Defined Under Namespace
Modules: Options Classes: BraingasmError, JumpSignal, Machine, Parser, ParsingError, Tokenizer, VMError
Constant Summary collapse
- VERSION =
"0.2.1"
Class Method Summary collapse
Class Method Details
.handle_options(**command_line_options) ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/braingasm/options.rb', line 27 def self.(**) Options[:eof] = 0 if [:zero] Options[:eof] = -1 if [:negative] Options[:eof] = nil if [:as_is] Options[:wrap_cells] = false if [:unbound] if [:cell_size_given] cell_size = [:cell_size] Options[:cell_limit] = 2**cell_size end end |