Class: Jaina::Parser::CodeConverter Private

Inherits:
Object
  • Object
show all
Defined in:
lib/jaina/parser/code_converter.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.

Since:

  • 0.1.0

Defined Under Namespace

Classes: ToPostfixForm, ToPrefixForm

Class Method Summary collapse

Class Method Details

.to_postfix_form(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.

Parameters:

  • program (String)

Returns:

  • (String)

Since:

  • 0.1.0



15
16
17
# File 'lib/jaina/parser/code_converter.rb', line 15

def to_postfix_form(program)
  ToPostfixForm.call(program)
end

.to_prefix_form(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.

Parameters:

  • program (String)

Returns:

  • (String)

Since:

  • 0.1.0



24
25
26
# File 'lib/jaina/parser/code_converter.rb', line 24

def to_prefix_form(program)
  ToPrefixForm.call(program)
end