Class: OrigenTesters::ATP::Formatter

Inherits:
Processor
  • Object
show all
Defined in:
lib/origen_testers/atp/formatter.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Processor

#clean_flag, #extract_volatiles, #handler_missing, #process, #process_all, #run, #volatile?, #volatile_flags

Class Method Details

.format(node, options = {}) ⇒ Object


12
13
14
# File 'lib/origen_testers/atp/formatter.rb', line 12

def self.format(node, options = {})
  new.format(node, options)
end

.run(*args) ⇒ Object


21
22
23
# File 'lib/origen_testers/atp/formatter.rb', line 21

def self.run(*args)
  run_and_format(*args)
end

.run_and_format(node, options = {}) ⇒ Object


16
17
18
19
# File 'lib/origen_testers/atp/formatter.rb', line 16

def self.run_and_format(node, options = {})
  ast = Runner.new.run(node, options)
  format(ast, options)
end

Instance Method Details

#format(node, options = {}) ⇒ Object


3
4
5
# File 'lib/origen_testers/atp/formatter.rb', line 3

def format(node, options = {})
  process(node)
end

#run_and_format(node, options = {}) ⇒ Object


7
8
9
10
# File 'lib/origen_testers/atp/formatter.rb', line 7

def run_and_format(node, options = {})
  ast = Runner.new.run(node, options)
  format(ast, options)
end