Class: Rpl
- Inherits:
-
Interpreter
- Object
- Interpreter
- Rpl
- Includes:
- RplLang::Words::Branch, RplLang::Words::Display, RplLang::Words::FileSystem, RplLang::Words::General, RplLang::Words::List, RplLang::Words::Logarithm, RplLang::Words::Mode, RplLang::Words::OperationsComplexes, RplLang::Words::OperationsReals, RplLang::Words::OperationsRealsAndComplexes, RplLang::Words::Program, RplLang::Words::REPL, RplLang::Words::Stack, RplLang::Words::Store, RplLang::Words::String, RplLang::Words::StringAndList, RplLang::Words::Test, RplLang::Words::TimeAndDate, RplLang::Words::Trig, Types
- Defined in:
- lib/rpl.rb
Instance Attribute Summary
Attributes inherited from Interpreter
#dictionary, #frame_buffer, #precision, #stack, #version
Instance Method Summary collapse
-
#initialize(stack = [], dictionary = Dictionary.new) ⇒ Rpl
constructor
A new instance of Rpl.
- #populate_dictionary ⇒ Object
Methods included from Types
Methods inherited from Interpreter
#export_stack, #export_vars, #initialize_frame_buffer, #run, #stack_extract
Constructor Details
#initialize(stack = [], dictionary = Dictionary.new) ⇒ Rpl
Returns a new instance of Rpl.
10 11 12 13 14 |
# File 'lib/rpl.rb', line 10 def initialize( stack = [], dictionary = Dictionary.new ) super populate_dictionary if @dictionary.words.empty? end |
Instance Method Details
#populate_dictionary ⇒ Object
36 |
# File 'lib/rpl.rb', line 36 def populate_dictionary; end |