Module: PlcUtil::Awl::AwlGrammar::DbNode

Includes:
StructHelpers
Defined in:
lib/plcutil/siemens/awl/treetop_nodes.rb

Instance Method Summary collapse

Methods included from StructHelpers

#struct_visit_helper

Instance Method Details

#visit(root) ⇒ Object



30
31
32
33
34
35
# File 'lib/plcutil/siemens/awl/treetop_nodes.rb', line 30

def visit(root)
  root[:dbs] << {}.tap do |db|
    name.hash_entry db
    db[:entries] = struct_visit_helper root_struct_decl.struct_data_type
  end
end