Class: Jaina::Parser::AST::Tree Private

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(initial_program:, ast_oriented_program:, expression:) ⇒ 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.

Parameters:

  • initial_program (Hash)

    a customizable set of options

  • ast_oriented_program (Hash)

    a customizable set of options

  • expression (Hash)

    a customizable set of options

Options Hash (initial_program:):

  • (String)

Options Hash (ast_oriented_program:):

  • (String)

Options Hash (expression:):

Since:

  • 0.1.0



31
32
33
34
35
# File 'lib/jaina/parser/ast/tree.rb', line 31

def initialize(initial_program:, ast_oriented_program:, expression:)
  @initial_program = initial_program
  @ast_oriented_program = ast_oriented_program
  @expression = expression
end

Instance Attribute Details

#ast_oriented_programString (readonly)

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.

Returns:

  • (String)

Since:

  • 0.1.0



16
17
18
# File 'lib/jaina/parser/ast/tree.rb', line 16

def ast_oriented_program
  @ast_oriented_program
end

#expressionJaina::Parser::Expression::Operator::Abstract (readonly) Also known as: root

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.



22
23
24
# File 'lib/jaina/parser/ast/tree.rb', line 22

def expression
  @expression
end

#initial_programString (readonly)

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.

Returns:

  • (String)

Since:

  • 0.1.0



10
11
12
# File 'lib/jaina/parser/ast/tree.rb', line 10

def initial_program
  @initial_program
end