Class: Jaina::Parser::CodeConverter::ToPostfixForm Private
- Inherits:
-
Object
- Object
- Jaina::Parser::CodeConverter::ToPostfixForm
- Extended by:
- Forwardable
- Defined in:
- lib/jaina/parser/code_converter/to_postfix_form.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .call(program) ⇒ String private
Instance Method Summary collapse
- #call ⇒ String private
- #initialize(program) ⇒ void constructor private
Constructor Details
#initialize(program) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 35 |
# File 'lib/jaina/parser/code_converter/to_postfix_form.rb', line 32 def initialize(program) @program = program.dup.tap(&:freeze) @tokens = Jaina::Parser::Tokenizer.tokenize(program) end |
Class Method Details
.call(program) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
15 16 17 |
# File 'lib/jaina/parser/code_converter/to_postfix_form.rb', line 15 def call(program) new(program).call end |
Instance Method Details
#call ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 |
# File 'lib/jaina/parser/code_converter/to_postfix_form.rb', line 41 def call to_postfix_form end |